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 Sun, 08 Nov 2026 03:36:14 +0000