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 = '}'): boolParameters
| 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, 05 Jun 2026 06:08:15 +0000