parsekit_compile_string()
parsekit_compile_string - Compile a string of PHP code and return the resulting op array
Syntax
array parsekit_compile_string (
string $phpcode,
array &$errors,
int $options)
Arguments
- phpcode - A string containing phpcode. Similar to the argument to eval().
- errors - A 2D hash of errors (including fatal errors) encountered during compilation. Returned by reference.
- options - One of either PARSEKIT_QUIET or PARSEKIT_SIMPLE. To produce varying degrees of verbosity in the returned output.
Description
Version
PHP PECL parsekit >= 0.2.0
Return value
Returns a complex multi-layer array structure as detailed below.