how to display a php file as html with php

you can use the following function to show a php source file as html

PHP

highlight_file('myPHPfile.php');

Demo

Other Items in php
Page Views

This page has been viewed 36 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹