src/Appcia/Utils/Php.php
public static function getSetting($key, $value = null)
    {
        $data = ini_get($key);
        if ($data === false) {
            throw new \InvalidArgumentException(sprintf("Invalid PHP setting '%s'", $key));
        }

        if ($value === null) {
            return $data;
        } else {
            ini_set($key, $value);
        }
    }
public static function getSetting($key, $value = null)
    {
        $data = ini_get($key);
        if ($data === false) {
            throw new \InvalidArgumentException(sprintf("Invalid PHP setting '%s'", $key));
        }

        if ($value === null) {
            return $data;
        } else {
            ini_set($key, $value);
        }
    }
public static function getSetting ( $ key , $ value = null ) { $ data = ini_get ( $ key ) ; if ( $ data === false ) { throw new \ InvalidArgumentException ( sprintf ( "Invalid PHP setting '%s'" , $ key ) ) ; } if ( $ value === null ) { return $ data ; } else { ini_set ( $ key , $ value ) ; } }
Get PHP setting runtime value with parameter name check

@param string $key
@param mixed  $value

@return string
@throws \InvalidArgumentException
Get PHP setting runtime value with parameter name check