echo in console 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:
- enable php error
- aadd day in date php
- catch new exception php
- date("n", $time)
- Allowed memory size of 1610612736 bytes exhausted
- clear cahce config laravel in cpanel
- create seeding in laravel
- a.length en php
- artisan make model with migration
- base64_decode online php
- Laravel catch TokenMismatchException
- echo command in browser console
- Class 'App\Widgets\BaseDimmer' not found \vendor\tcg\voyager\resources\views\dimmers.blade.php)
- date with time in php
- 500 Server Error on laravel
- date to timestamp ph
- exceptions in php
- array_count_values php
- ! array_key_exists php
- - phpunit/phpunit 4.8.27 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- check is a value is on an string php
- Allowed memory size of 1610612736 bytes exhausted for laravel
- date and hour php
- array if key exist php