private function GetArrayValueOrDefault($array, $key, $default = null) {
        $value = $default;

        try {
            $value = $array[$key];
            if (null === $value) {
                $value = $default;
            }
        }
        catch( Exception $ex) {
            $value = $default;
        }

        return $value;
    }
private function GetArrayValueOrDefault($array, $key, $default = null) {
        $value = $default;

        try {
            $value = $array[$key];
            if (null === $value) {
                $value = $default;
            }
        }
        catch( Exception $ex) {
            $value = $default;
        }

        return $value;
    }
private function GetArrayValueOrDefault ( $ array , $ key , $ default = null ) { $ value = $ default ; try { $ value = $ array [ $ key ] ; if ( null === $ value ) { $ value = $ default ; } } catch ( Exception $ ex ) { $ value = $ default ; } return $ value ; }
Returns the value of a key in an array, or if not found, returns the
default provided.

@param $array         The array to return the value from.
@param $key           The key to lookup.
@param null $default  The default value to return if the key does not exist.
@return               The value requested or the default provided.
Returns the value of a key in an array or if not found returns the default provided .