Answers for "print php array to console"

PHP
1

php echo and array to consle

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