public function pull($key, $default = null)
    {
        $value = $this->offsetGet($key);

        $this->offsetUnset($key);

        return $value ?: $default;
    }
public function pull($key, $default = null)
    {
        $value = $this->offsetGet($key);

        $this->offsetUnset($key);

        return $value ?: $default;
    }
public function pull ( $ key , $ default = null ) { $ value = $ this -> offsetGet ( $ key ) ; $ this -> offsetUnset ( $ key ) ; return $ value ? : $ default ; }
Pulls an item from the collection.

@param  mixed  $key
@param  mixed  $default
@return mixed
Pulls an item from the collection .