(PECL runkit >= 0.7.0)
runkit_lint — Check the PHP syntax of the specified php code
$code
)The runkit_lint() function performs a syntax (lint) check on the specified php code testing for scripting errors. This is similar to using php -l from the command line except runkit_lint() accepts actual code rather than a filename.
Note: 對 Sandbox 的支援(是函式 runkit_lint()、runkit_lint_file() 和 Runkit_Sandbox 類別所必須的)僅在 PHP 5.1 中,或在加過特別更新套件的 PHP 5.0 中可用,並需要啟用線程安全。請閱讀 runkit 套件中的 README 文件以瞭解更多訊息。
code
PHP Code to be lint checked
如果成功則回傳 TRUE
,失敗則回傳 FALSE
。