copnsole log in php
// A little correction / improvement to @Kaotik's answer:
<?php
function consoleLog($msg)
{
echo '<script type="text/javascript">console.log('
. str_replace('<', '\\x3C', json_encode($msg))
. ');</script>';
}
consoleLog('Hello, console!');
?>
Also in PHP:
- all cap in php
- date time pph
- current date in codeigniter
- eloquent using last()
- current date() in php
- create seed laravel
- composer check current php version
- $_server current url
- count length string php
- check if next key is array or object in php
- - convert a string of numbers to a sentence in php code
- add customer attributes via upgrad data in magento 2
- codeigniter hget last insert
- 1071 Specified key was t oo long; max key length is 3072 bytes laravel
- The PHP __________ function formats a timestamp to a more readable time.
- download npm package
- find index of occurrence php
- How to request and display data from db in larave
- execute query and use die in php
- 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
- convert php timestamp to date
- cache clear in laravel
- copnsole log in php
- Call to undefined function App\Models\str_slug()