php_check_syntax
Check the syntax of the specified file
Description
boolphp_check_syntax
stringfile_name
stringerror_message
The php_check_syntax function performs a syntax
(lint) check on the specified filename testing
for scripting errors.
If the second parameter is passed, it will contain the error message
from the syntax check. This parameter must be passed by reference.
The following example shows how this function can be used.
php_check_syntax example
]]>
The output of the above script could look something like this: