console log variable 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>
Also in PHP:
- codeigniter get last inserted data row
- do i use laravel version or php version when hosting laravel app
- create a laravel project cmd
- PHp and adys to date
- check string for value php
- PHP found in
- date ymd his php
- currentDateTime php
- create seed laravel
- not null in laravel
- create new file in folder php
- Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
- borrar cache laravel
- echo date in php
- echo getType($value)
- Allowed memory size of 1610612736 bytes exhausted (tried
- clear all cache laravel server
- Standard date format php
- csv file import encoding error
- check if array contains key php
- check if string has comma php
- echo date to page in php
- date formte php
- eventon php code