Skip to content

Instantly share code, notes, and snippets.

@polarity
Created July 25, 2012 10:37
Show Gist options
  • Save polarity/3175479 to your computer and use it in GitHub Desktop.
Save polarity/3175479 to your computer and use it in GitHub Desktop.
PHP JS Demo
var engine = new PHP ('<?php echo "Hello world!"; ?>');
console.log( engine.vm.OUTPUT_BUFFER); // the outputted buffer from the script!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment