lib/Collection.php
public function pull($key)
    {
        if ($this->has($key)) {
            $pulled = $this->get($key);
            $this->remove($key);
            return $pulled;
        }
        return false;
    }
public function pull($key)
    {
        if ($this->has($key)) {
            $pulled = $this->get($key);
            $this->remove($key);
            return $pulled;
        }
        return false;
    }
public function pull ( $ key ) { if ( $ this -> has ( $ key ) ) { $ pulled = $ this -> get ( $ key ) ; $ this -> remove ( $ key ) ; return $ pulled ; } return false ; }
Pull an item from the collection and remove it from the collection.
@param string $key
@return mixed|false
Pull an item from the collection and remove it from the collection .