Returns whether a given hostmask matches a given pattern.
public matches ( string $pattern, string $hostmask = null ) : boolean | ||
$pattern | string | Pattern using conventions of a ban mask where represents a wildcard |
$hostmask | string | Optional hostmask to match against, if not the current hostmask instance |
리턴 | boolean | TRUE if the hostmask matches the pattern, FALSE otherwise |