PHP Class SqlParser\Utils\Tokens

ファイルを表示 Open project: phpmyadmin/sql-parser Class Usage Examples

Public Methods

Method Description
match ( Token $token, array $pattern ) : boolean Checks if a pattern is a match for the specified token.
replaceTokens ( $list, array $find, array $replace )

Method Details

match() public static method

Checks if a pattern is a match for the specified token.
public static match ( Token $token, array $pattern ) : boolean
$token SqlParser\Token The token to be matched.
$pattern array The pattern to be matches.
return boolean

replaceTokens() public static method

public static replaceTokens ( $list, array $find, array $replace )
$find array
$replace array