/** * Finds the first position of the search in the string. * * @param string $needle The string to search for. * @param integer $offset The character position to start searching from. * * @return integer The character position, or `false`. */ public function indexOf($needle, $offset = 0) { return static::$helper->indexOf($this->string, $needle, $offset); }