/** * @param $value * @return HString */ public function remove($value) { $key = $this->hString->locate($value); $startString = $this->hString->slice(0, $key); $endString = $this->hString->slice($key + 1); return $startString->insert($endString); }
/** * @param $value * @return HString */ public function remove($value) { $key = $this->hString->locate($value); return new HString($this->getPrefix($key) . $this->getSuffix($key)); }