CodeBlock
Less than 1 minute
CodeBlock
Methods
seekCodeBlockEnd
Find a code block in the token stream.
protected seekCodeBlockEnd(array $tokens, string $start = '{', string $end = '}'): boolThis function will return an array of tokens that represent the code block found.
Parameters
| Parameter | Type | Description |
|---|---|---|
$tokens | array | the token stream to search |
$start | string | |
$end | string |
Generated by Hazaar API Doc Generator on Wed, 07 Jan 2026 11:29:59 +0000