Ejemplo n.º 1
0
 /**
  * Performs match of specified pattern against $subject.
  * @param string $subject The subject, on which to perform matches.
  * @return boolean Whether or not pattern matches subject string passed.
  */
 public function matches($subject)
 {
     if ($this->pattern === null) {
         throw new Exception("No pattern specified for regexp match().");
     }
     return $this->engine->match($this->pattern, $subject, $this->groups);
 }