Skip to content

Instantly share code, notes, and snippets.

@mkormendy
Created December 1, 2014 05:57
Show Gist options
  • Save mkormendy/5175eea0b2538bd4b033 to your computer and use it in GitHub Desktop.
Save mkormendy/5175eea0b2538bd4b033 to your computer and use it in GitHub Desktop.
Outputting PHP variables to the browser console
<?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