Splits the provided $code into PHP language tokens.
public static tokenize ( string $code, array $options = [] ) : array | ||
$code | string | Source code to be tokenized. |
$options | array | Options consists of: -'wrap': Boolean indicating whether or not to wrap the supplied code in PHP tags. -'ignore': An array containing PHP language tokens to ignore. -'include': If supplied, an array of the only language tokens to include in the output. |
return | array | An array of tokens in the supplied source code. |