How would one go about showing PHP code on user end. Sort of like w3School does?
Having lets say a grey area div, and then showing the code in there without activating it?
You can use html entities <?php in the html it will be rendered as <?php
<?php
You can use htmlspecialchars to encode your code to use html entities.
1.4m articles
1.4m replys
5 comments
57.0k users