add php var in console log
// 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:
- clear all ache views in php articen
- create migration laravel
- code in try in php shows error output
- PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
- composer create-project laravel/laravel 8
- check for an existing user laravel eloquent
- check if a word contains another php
- a format of unique string to be generated in php
- Library not loaded: /usr/local/opt/icu4c/lib/libicuio.64.dylib Referenced from: /usr/local/bin/php
- return $this->hasOne(Client::class,'gender_code','gender_code'); laravel
- check if string contains word
- check laravel version
- TreeBuilder::getRootNode()" before creating the root node is not supported, migrate to the new constructor signature instead.
- define header in different file php
- Allowed memory size of 1073741824 bytes exhausted (tried to allocate 534777856 bytes) in laravel
- check type php
- custom post type with taxonomy
- drupal 8 enable twig debug
- eventtypesseeder laravel
- codeigniter sql last insert id
- exception handling keyword in php
- ->format('j')
- check if array contain key php
- convert to int php