src/ORM/ArrayList.php
public function remove($item)
    {
        $renumberKeys = false;
        foreach ($this->items as $key => $value) {
            if ($item === $value) {
                $renumberKeys = true;
                unset($this->items[$key]);
            }
        }
        if ($renumberKeys) {
            $this->items = array_values($this->items);
        }
    }
public function remove($item)
    {
        $renumberKeys = false;
        foreach ($this->items as $key => $value) {
            if ($item === $value) {
                $renumberKeys = true;
                unset($this->items[$key]);
            }
        }
        if ($renumberKeys) {
            $this->items = array_values($this->items);
        }
    }
public function remove ( $ item ) { $ renumberKeys = false ; foreach ( $ this -> items as $ key => $ value ) { if ( $ item === $ value ) { $ renumberKeys = true ; unset ( $ this -> items [ $ key ] ) ; } } if ( $ renumberKeys ) { $ this -> items = array_values ( $ this -> items ) ; } }
Remove this item from this list

@param mixed $item
Remove this item from this list