CodeBlock
Less than 1 minute
CodeBlock
Utility methods for navigating nested tokenised code blocks.
trait CodeBlockMethods
seekCodeBlockEnd
Advances the token pointer to the end of a delimited code block.
protected seekCodeBlockEnd(array $tokens, string $start = '{', string $end = '}'): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$tokens | array | token stream to scan |
$start | string | opening delimiter to count |
$end | string | closing delimiter to count |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000