/** * @param $value * @return int * @throws ElementNotFoundException */ public function locate($value) { if ($this->hString->contains($value)) { return mb_strpos($this->hString, (string) $value, null, $this->hString->getEncoding()); } throw new ElementNotFoundException($value); }
/** * @param $value * @return int * @throws ElementNotFoundException */ public function locate($value) { if ($this->hString->contains($value)) { return strpos($this->hString, (string) $value); } throw new ElementNotFoundException($value); }