new locations array organisation

This commit is contained in:
lenovo
2022-11-05 21:53:00 +01:00
parent 9424cca52e
commit 6fc3c78b71
10 changed files with 144 additions and 73 deletions

View File

@@ -1,11 +1,8 @@
<?php
// https://stackify.com/how-to-log-to-console-in-php/
function mp_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>';
}
function mp_console_log($output) {
$js_code = 'console.log(' . json_encode($output, JSON_HEX_TAG) . ');';
$js_code = '<script>' . $js_code . '</script>';
echo $js_code;
}
?>