Name
highlight_file
Synopsis
mixed highlight_file(stringfilename
[, boolreturn
] )
Prints a syntax-colored version of the PHP source file
filename
using PHP’s built-in syntax
highlighter. Returns true
if
filename
exists and is a PHP source file;
otherwise, returns false
. If
return
is true
, the highlighted code is returned as a
string rather than being sent to the output device.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.