Name
highlight_file
Synopsis
bool highlight_file(string filename
)
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
.
Get Programming PHP, 2nd 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.