Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Parle\RLexer::pushParle\RLexer::reset>
^Parle\RLexerLast updated: Mon, 26 Oct 2026

Parle\RLexer::pushState

(PECL parle >= 0.5.1)

Parle\RLexer::pushState — Push a new start state

Description

public function Parle\RLexer::pushState(string $state): int

This lexer type can have more than one state machine. This allows you to lex different tokens depending on context, thus allowing simple parsing to take place. Once a state pushed, it can be used with a suitable Parle\RLexer::push() signature variant.

Parameters

state

Name of the state.

Return Values


<Parle\RLexer::pushParle\RLexer::reset>
^Parle\RLexerLast updated: Mon, 26 Oct 2026