PHP -Konsolenprotokollarray
echo "<script>console.log(`" . json_encode($data) . "`);</script>";
ditii
echo "<script>console.log(`" . json_encode($data) . "`);</script>";