console/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!');
?>/*
console.log in php
*/
<?php
function consoleLog($message) {
echo '<script type="text/javascript">' .
'console.log(' . $message . ');</script>';
}
consoleLog('Hello, greppers!');
?>
Also in PHP:
- empty laravel cache
- eliminar ultimo caracter string php
- check if text is in string php
- check if something is on a string php
- date fonction php
- create project laravel 7 ?
- extend php maximum execution time
- delete duplicate elements array php
- array_merge() does not accept unknown named parameters laravel
- fetch last inserted data with record in php codeingniter
- check if value contain strings php
- carbon compare same date
- echo errors of php
- composer laravel install version 5.6 command
- capitalized string in php
- cmd clear cache laravel
- console/log in php
- 71 - Specified key was too long; max key length is 767 bytes
- composer php version
- check if string is not in other string php
- adding 2 in date() php
- Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add index `users_userable_type_userable_id_index`(`userable_type`, `userable_id`)
- command to install laravel 7
- composer create project laravel