console log with 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:
- check if array is duplicate and get the latest values php
- exceptionhandling php
- file_get_contents timeout
- current php date
- contain string php
- array unique in php using a column
- find out type of in php
- .length php
- error correction in qr code php
- check that array key exists
- date php day of wekk
- database last insert id php codeigniter
- download and install laveral
- No match for argument: phpmyadmin yum
- custom factory in laravel 8
- display_errors php.ini
- date format r php
- error message in php
- clear storage laravel
- collection empty laravel
- clear app cache laravel
- create alphanumeric code php
- datetime manual date format
- THROW EXPECTION PHP