PHP » GoLang |
login |
register |
about
|
GoLang php_check_syntax
request it (333)
GoLang replacement for PHP's php_check_syntax
[edit | history]
php_check_syntax(PHP 5 < 5.0.5) php_check_syntax — Check 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 |
more
Recently updated
more
Most requested
|