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\Parser::tokenParle\Parser::trace>
^Parle\ParserLast updated: Mon, 26 Oct 2026

Parle\Parser::tokenId

(PECL parle >= 0.5.1)

Parle\Parser::tokenId — Get token id

Description

public function Parle\Parser::tokenId(string $tok): int

Retrieve the id of the named token.

Parameters

tok

Name of the token as used in Parle\Parser::token().

Return Values

Returns int representing the token id.


<Parle\Parser::tokenParle\Parser::trace>
^Parle\ParserLast updated: Mon, 26 Oct 2026