console for php
// Assuming you are wishing to log to the JS Console...
<?php
function consoleLog($msg) {
echo '<script type="text/javascript">' .
'console.log(' . $msg . ');</script>';
}
consoleLog('Hello, console!');
?><script>
console.log(<?= json_encode($foo); ?>);
</script>
Also in PHP:
- base 64 implementation php
- convert to uppercase in php
- check if current page is front wp
- "Allowed memory size of 134217728 bytes exhausted (tried to allocate 56627200 bytes)" in wamp
- conteneur d'injection de dépendance php
- date time pph
- 404 page in laravel
- contains in stringin php
- display custom post type
- drupal 8 date formater service
- cache DB table laravel
- current uri php[
- find a word in string php
- If start of string contains php
- data:image/png;base64 php
- cappitalize string in php
- file upload in php through ajax
- codeigniter where_not_in
- datetime php create from timestamp
- catch error exception php
- check fo rtype of input php
- consol log php
- clearall cache laravel
- don't desplay error in php