Parle\RParser::tokenId

(PECL parle >= 0.7.0)

Parle\RParser::tokenIdGet token id

说锟斤拷

public Parle\RParser::tokenId ( string $tok ) : int

Retrieve the id of the named token.

锟斤拷锟斤拷

tok

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

锟斤拷锟斤拷值

Returns integer representing the token id.