public static function getNumeric($key, $default = null)
    {
        $value = ini_get($key);

        return $value === false || $value === '' ? $default : $value + 0;
    }
public static function getNumeric($key, $default = null)
    {
        $value = ini_get($key);

        return $value === false || $value === '' ? $default : $value + 0;
    }
public static function getNumeric ( $ key , $ default = null ) { $ value = ini_get ( $ key ) ; return $ value === false || $ value === '' ? $ default : $ value + 0 ; }
Returns the value of the given key filtered to an int or float.

If the key does not exist or the value is empty the given default is returned.

@param string         $key
@param int|float|null $default

@return int|float|null
Returns the value of the given key filtered to an int or float .