public static function getUnset (&$arr, $key, $default = null)
    {
        $value                  = isset($arr[$key]) ? $arr[$key] : $default;
        if (isset($arr[$key]))
            unset($arr[$key]);
        return $value;
    }
public static function getUnset (&$arr, $key, $default = null)
    {
        $value                  = isset($arr[$key]) ? $arr[$key] : $default;
        if (isset($arr[$key]))
            unset($arr[$key]);
        return $value;
    }
public static function getUnset ( & $ arr , $ key , $ default = null ) { $ value = isset ( $ arr [ $ key ] ) ? $ arr [ $ key ] : $ default ; if ( isset ( $ arr [ $ key ] ) ) unset ( $ arr [ $ key ] ) ; return $ value ; }
Get the value and if it's set, unset it
@param       array       $arr
@param       string      $key
@param       null        $default
@return      null
Get the value and if it s set unset it