How to display PHP & HTML source code on a page?

You can use html entities &lt;?php in the html it will be rendered as <?php

You can use htmlspecialchars to encode your code to use html entities.

Leave a Comment