Thanks to visit codestin.com Credit goes to www.php.net
(PECL parle >= 0.5.1)
Parle\Parser::tokenId — Get token id
$tok
Retrieve the id of the named token.
tok
Name of the token as used in Parle\Parser::token().
Returns int representing the token id.