console.log 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!');
?>/*
console.log in php
*/
<?php
function consoleLog($message) {
echo '<script type="text/javascript">' .
'console.log(' . $message . ');</script>';
}
consoleLog('Hello, greppers!');
?>
Also in PHP:
- 1071 Specified key was too long; max key length is 767 bytes laravel
- date php day of wekk
- drupal 8 enable twig debug
- Allowed memory size of 536870912 bytes exhausted (tried to allocate 102400 bytes) in Unknown on line 0 laravel
- array reverse sort php
- divi layout injector shortcode module in function php file
- exec output php
- check if string contains only one word
- count() parameter must be an array or an object that implements countable laravel
- echo child category
- delete cache file laravel
- !array_key_exists($id, $this->items)
- display data if date php
- create a button add in laravel
- blood groups laravel seeder
- array distinct php
- echo type php
- How can I install php7.4 on Ubuntu 18.04?
- convert string to uppercase php
- clear nuget cache
- 2 days in php
- eloquent update row response
- dompdf/dompdf v1.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- array key exists php