console.log in pgp
// 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:
- Stored Procedures in Laravel
- count number of characters in php
- blood groups laravel seeder
- compress video file size php
- all php errors
- Laravel disable login and register route
- creade seeder in laravel
- date php day of wekk
- Fixes duplicate arrays to show a single character. php
- check array in array key
- ajax project using php and jquery
- cors header ‘access-control-allow-origin’ missing IN PARTICULAR CAKEPHP API
- array reverse sort php
- catch erro message php
- convert timestamp to date format php
- check composer version in cmd
- filter array if duplicates php
- add to hours to variable date php
- How to add validation form image in laravel
- How do I make a redirect in PHP?
- check if word include string
- $time = date('r') php
- date in php in dats
- check if key of array key true or false php