Home > PHP > Function > runkit > runkit_lint()

runkit_lint()

runkit_lint - Check the PHP syntax of the specified php code

Syntax

bool runkit_lint (string $code)

Arguments

  • code - PHP Code to be lint checked

Description

The runkit_lint() function performs a syntax (lint) check on the specified php code testing for scripting errors. This is similar to using php -lfrom the command line except runkit_lint() accepts actual code rather than a filename.

Version

PHP PECL runkit >= 0.7.0

Return value

Returns TRUE on success or FALSE on failure.