add console script in phpcode
/*
console.log in php
*/
<?php
function consoleLog($message) {
echo '<script type="text/javascript">' .
'console.log(' . $message . ');</script>';
}
consoleLog('Hello, greppers!');
?>$a = array(
null => 'a',
true => 'b',
false => 'c',
0 => 'd',
1 => 'e',
'' => 'f'
);
echo count($a), "\n";
Also in PHP:
- check if the string match in php
- < Php echo date("m") . " "; ?> what is the output of this script?
- clear database cache laravel command
- carbon now
- Str slug laravel
- avoir la date php
- array_column in php
- find string length php
- echo foreach
- always getting error Your username or password is incorrect. in cakephp login in xampp
- am pm date format php
- Y-m-d H:i:s O format
- Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:cer
- Allowed memory size of 134217728 bytes exhausted (tried to allocate 495616 bytes) {"userId":3,"exception":"[object]
- PHP echo and print Statements
- add 10 days to date in php
- event click right mouse
- convert string to date php
- different elements of array php
- check data type php
- error_log wordpress
- Backend fatal error: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted in laravel 8
- drupal 8 twig filters
- convert multidimensional array to single array php