Created
December 1, 2014 05:57
-
-
Save mkormendy/5175eea0b2538bd4b033 to your computer and use it in GitHub Desktop.
Outputting PHP variables to the browser console
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
<?php | |
echo "<script>console.log($post->ID)</script>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment