src/Datastructure/Lists/ArrayLists/ArrayList.php
public function removeByValue($value): bool {
        if (!$this->containsValue($value)) {
            return true;
        }
        $key = $this->indexOf($value);
        $removed = $this->remove($key);
        return $removed;
    }
public function removeByValue($value): bool {
        if (!$this->containsValue($value)) {
            return true;
        }
        $key = $this->indexOf($value);
        $removed = $this->remove($key);
        return $removed;
    }
public function removeByValue ( $ value ) : bool { if ( ! $ this -> containsValue ( $ value ) ) { return true ; } $ key = $ this -> indexOf ( $ value ) ; $ removed = $ this -> remove ( $ key ) ; return $ removed ; }
removes a single value from the list

@param $value
@return bool
removes a single value from the list