consloe.log in 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:
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5" laravel
- date formate with timestamp php
- display current data php
- clear cache after delete post lara el
- check array key exit php
- filename php
- error out of length in php
- PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 5.6.40
- HOW TO find that variable contain the text
- find char in string php
- console.log inside php
- array_key_exists not finding numbers
- cache clear laravel command
- echo in php console log
- erreur php
- composer check current php version
- case php try catch
- convert text toupper case php
- artisan cache clear
- clearcache artisan
- db seeder laravel 5
- filter elementor
- create a laravel project cmd
- all php exception