0
In the body tag of your html:
<?php
$out = "output";
echo "<script type='text/javascript'>";
echo "document.write(" . $out . ")";
echo "</script>";
?>
Is this what you mean?
Note: this should work in a normal browser, but I'm afraid it doesn't work on sololearn.