Created
August 8, 2018 18:19
-
-
Save jesgs/4d3b2d906ee8e50a7618126d912cf139 to your computer and use it in GitHub Desktop.
Quick var_dump for the console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// maybe expand this to do more than just objects and arrays? | |
echo "<script>console.log(" . json_encode($myObjectOrArray) . ");</script>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment