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!');
?>//display message in console
<?php
function console_log($msg) {
echo '<script>' .
'console.log("'.$msg .' ")</script>';
}
console_log("Hi there!");
?>
Also in PHP:
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5" laravel
- $this->validate($request,[ 'name' => 'required|unique:categories', 'images' => 'required|mimes:jpeg,bmp,png,jpg'
- echo php dropdown from db and save it in a db
- adeleye ayodeji
- check if contain keyword php
- Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\PPETrackerApp\email.php on line 21
- error reporting php
- day in php time
- Connect to SQL in a php PDO and print the data in it
- error e all php
- associative array rev in php
- binary base64 decode php
- create array from string with commas php
- array_reverse in php
- after for each loop in php
- check if string include char php
- .htaccess to remove index page
- create a folder php
- check is a key of array exist php
- display_errors php.ini
- blob image to base64 php
- exit and echo php
- DATE fromat H:i j M Y
- echo fread($myfile,filesize("webdictionary.txt"));