The PHP show_source() function outputs a file with the PHP syntax highlighted. The syntax is highlighted by using HTML tags.

				
					<?php
echo show_source('test.php');
?>
				
			

Syntax

				
					show_source(filename, return)
				
			

Parameters

ParameterDescription
filenameSpecifies the file to display (required)
returnIf set to TRUE, this function will return the highlighted code as a string, instead of printing it out (default is FALSE)