php8.5
Home/ Manual/ parle / parser/ Parle\Parser::tokenId

Parle\Parser::tokenId

PHP function Edit on GitHub ✎

(PECL parle >= 0.5.1)

Get token id

Description

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 Integer representing the token id.

Source: reference/parle/parle/parser/tokenid.xml · from the official PHP manual (php/doc-en)