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 Sun, 01 Mar 2026 09:22:25 +0000