Answers for "How to print a array on console in php"

PHP
2

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