src/Collection/ArrayCollection.php
public function pull($key)
    {
        $value = $this->get($key);
        $this->remove($key);

        return $value;
    }
public function pull($key)
    {
        $value = $this->get($key);
        $this->remove($key);

        return $value;
    }
public function pull ( $ key ) { $ value = $ this -> get ( $ key ) ; $ this -> remove ( $ key ) ; return $ value ; }
Retrieves and removes a value

@param mixed $key The key

@return mixed
Retrieves and removes a value