finally a tuto that seems ok
This commit is contained in:
13
srcs/plugins/google_map/debug.php
Normal file
13
srcs/plugins/google_map/debug.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
// https://stackify.com/how-to-log-to-console-in-php/
|
||||
function console_log($output, $with_script_tags = true) {
|
||||
$js_code = 'console.log(' . json_encode($output, JSON_HEX_TAG) .
|
||||
');';
|
||||
if ($with_script_tags) {
|
||||
$js_code = '<script>' . $js_code . '</script>';
|
||||
}
|
||||
echo $js_code;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user