|
php_check_syntaxCheck the PHP syntax of (and execute) the specified file Description
bool php_check_syntax
( string
$filename
[, string &$error_message
] )
Performs a syntax (lint) check on the specified
This is similar to using php -l from the commandline except that this
function will execute (but not output) the checked
For example, if a function is defined in
Parameters
Return Values
Returns Changelog
Examples
php -l somefile.php The above example will output something similar to:
PHP Parse error: unexpected T_STRING in /tmp/somefile.php on line 81 See Also
|