public static function pull(&$array, $key, $default = null)
    {
        $value = self::get($array, $key, $default);

        self::forget($array, $key);

        return $value;
    }
public static function pull(&$array, $key, $default = null)
    {
        $value = self::get($array, $key, $default);

        self::forget($array, $key);

        return $value;
    }
public static function pull ( & $ array , $ key , $ default = null ) { $ value = self :: get ( $ array , $ key , $ default ) ; self :: forget ( $ array , $ key ) ; return $ value ; }
Get a value from the array, and remove it.

@param array  $array
@param string $key
@param mixed  $default

@return mixed
Get a value from the array and remove it .