var pi = document.createProcessingInstruction('php', 'echo("another example")'); var output = pi.data;