Kraken\Util\Support\StringSupport::match PHP Method

match() public static method

Check if string matches pattern using simple regexp method.
public static match ( string $pattern, string $string ) : boolean
$pattern string
$string string
return boolean
    public static function match($pattern, $string)
    {
        return fnmatch($pattern, $string);
    }

Usage Example

Beispiel #1
0
 /**
  * @param string $name
  * @param ProtocolInterface $protocol
  * @return bool
  */
 public function __invoke($name, ProtocolInterface $protocol)
 {
     return StringSupport::match($this->name, $name);
 }
All Usage Examples Of Kraken\Util\Support\StringSupport::match