Answers for "how to log array to console in php"

PHP
4

php console log array

echo "<script>console.log(`" . json_encode($data) . "`);</script>";
Posted by: Guest on July-07-2021
1

php echo an array to console

echo "<script>console.log('" . json_encode($data) . "');</script>";
Posted by: Guest on December-07-2020

Browse Popular Code Answers by Language