Last active
February 10, 2017 14:31
-
-
Save bazuzu931/ca24c3964cc51e58dbb972e406af3dbb to your computer and use it in GitHub Desktop.
var_dump_in_console.js
This file contains 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
function console_log( $data ){ | |
echo '<script>'; | |
echo 'console.log('. json_encode( $data ) .')'; | |
echo '</script>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment