console log using 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!');
?>//display message in console
<?php
function console_log($msg) {
echo '<script>' .
'console.log("'.$msg .' ")</script>';
}
console_log("Hi there!");
?>
Also in PHP:
- excpetion handling php
- eventtypesseeder laravel
- cache clear laravel command
- STR_TO_Time('" . $purchaseDate . "', '%Y-%m-%d %H:%i:%s'), php
- client_ip() function php
- compare string length php
- Fatal error: Allowed memory size of 1073741824 bytes exhausted (trie
- error reporting
- Class 'App\Http\Controllers\File' not found
- 500 server error laravel 7
- cors header ‘access-control-allow-origin’ missing IN PARTICULAR CAKEPHP API
- can i install php7.4 inside vagrant homestead
- consol log put in php
- find matching substrings in a string php
- array index exist php
- data php format
- PHP get access url
- find char in string php
- count chars php
- check object key exists php
- copy file path in phpstorm
- check if a word contains python
- "$_HEADER" php
- change max_execution_time php