<?php v = "string"; // sample initialization ?> html text <?php echo v; // end of php code ?>
<syntaxhighlight lang="php"> <?php v = "string"; // sample initialization ?> html text <?php echo v; // end of php code ?> </syntaxhighlight>