Skip to content

Instantly share code, notes, and snippets.

@mikeoberdick
Created April 1, 2018 00:55
Show Gist options
  • Save mikeoberdick/d6477bb508578d48efc0a29f97a76c03 to your computer and use it in GitHub Desktop.
Save mikeoberdick/d6477bb508578d48efc0a29f97a76c03 to your computer and use it in GitHub Desktop.
PHP to Javascript Variable and Log to Console
<script>
var val = " <?php echo $postCount ?>"
console.log( val );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment