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 Tue, 21 Apr 2026 04:00:25 +0000