lib/Pico.php
public function getConfig($configName = null, $default = null)
    {
        if ($configName !== null) {
            return isset($this->config[$configName]) ? $this->config[$configName] : $default;
        } else {
            return $this->config;
        }
    }
public function getConfig($configName = null, $default = null)
    {
        if ($configName !== null) {
            return isset($this->config[$configName]) ? $this->config[$configName] : $default;
        } else {
            return $this->config;
        }
    }
public function getConfig ( $ configName = null , $ default = null ) { if ( $ configName !== null ) { return isset ( $ this -> config [ $ configName ] ) ? $ this -> config [ $ configName ] : $ default ; } else { return $ this -> config ; } }
Returns either the value of the specified config variable or
the config array

@see Pico::setConfig()
@see Pico::loadConfig()

@param string $configName optional name of a config variable
@param mixed  $default    optional default value to return when the
named config variable doesn't exist

@return mixed if no name of a config variable has been supplied, the
config array is returned; otherwise it returns either the value of
the named config variable, or, if the named config variable doesn't
exist, the provided default value or NULL
Returns either the value of the specified config variable or the config array