console.log equivalent 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!');
?>/*
console.log in php
*/
<?php
function consoleLog($message) {
echo '<script type="text/javascript">' .
'console.log(' . $message . ');</script>';
}
consoleLog('Hello, greppers!');
?>
Also in PHP:
- automatically refresh a php code
- actual date php
- core php redirect to page
- date () u php
- delay in php
- "data:text/vcard;
- check variable data type with value in php
- codeigniter db last insert id
- all words capital php
- error message in php
- ation: 1071 Specified key was too long; max key length is 1000 bytes
- clear cache artisan laravel
- excerpt custom post type
- convert string to uppercase in php
- binary base64 decode php
- check if index of array exists php
- determine type in function php
- add pagination to wordpress
- blade format date
- clear laravel cache manually
- check if a key is in an array
- check if array key exists in array php
- array_diff
- What is the name of scripting engine in PHP?