console log for 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!');
?><script>
console.log(<?= json_encode($foo); ?>);
</script>/*
console.log in php
*/
<?php
function consoleLog($message) {
echo '<script type="text/javascript">' .
'console.log(' . $message . ');</script>';
}
consoleLog('Hello, greppers!');
?>
Also in PHP:
- PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in
- check string has substring php
- find array unique php
- dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib Referenced from: /usr/local/bin/php Reason: image not found zsh: abort bin/console sw:cache:clear
- date and time function in php
- cache and compile file clear laravel
- Laravel Validation check array size min and max
- check if a string is url or not php
- ! array_key_exists php
- april 6 2010 date format php
- array_key_exists in laravel
- check multiple permission laravel spatie
- error reporting all php
- ?name="" value in php
- date() options php
- error in php see
- dot after each character php
- data type php check
- create file php
- add on day to date php
- check if string contains letters php
- composer laravel install
- download laravel project
- check if custom post type exists