Answers for "console.log inside php"

PHP
-1

php print to console

<script>
    console.log(<?= json_encode($foo); ?>);
</script>
Posted by: Guest on June-06-2020
0

php console print

$a = array(
 null => 'a',
 true => 'b',
 false => 'c',
 0 => 'd',
 1 => 'e',
 '' => 'f'
);

echo count($a), "n";
Posted by: Guest on October-10-2020

Browse Popular Code Answers by Language