echo php console
// 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:
- add 1 month to date php
- change max_execution_time php on script
- application of laravel
- convert timestamp integer to date php
- $date < $date php
- ClearCache laravel
- check php for errors
- 500 server error laravel 7
- check key array php
- blade comment
- date("U")
- error_reporting() php
- cache and compile file clear laravel
- clear cache swr
- check if word matches with string
- catch custom exception php
- checking type of variable in php
- check website ssl certificate using php
- file in array
- artisan clear cahce
- Clear and delete the folder after the time specified in php
- artisan cache command in laravel
- date one dat
- artisan migrate one table