match() public static méthode

Check if string matches pattern using simple regexp method.
public static match ( string $pattern, string $string ) : boolean
$pattern string
$string string
Résultat boolean
 /**
  * @param string $name
  * @param ProtocolInterface $protocol
  * @return bool
  */
 public function __invoke($name, ProtocolInterface $protocol)
 {
     return StringSupport::match($this->name, $name);
 }
 /**
  * @param string $exception
  * @param ProtocolInterface $protocol
  * @return bool
  */
 public function __invoke($exception, ProtocolInterface $protocol)
 {
     return StringSupport::match($this->exception, $protocol->getException());
 }