Parle\Parser::validate
(PECL parle >= 0.5.1)
Parle\Parser::validate — Validate input
Description
Validate an input string. The string is parsed internally, thus this method is useful for the quick input validation.
Parameters
data
String to be validated.
lexer
A lexer object containing the lexing rules prepared for the particular grammar.
Return Values
Returns bool witnessing whether the input chimes or not with the defined rules.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
