Banago\PHPloy\PHPloy::parseIniFile PHP Метод

parseIniFile() публичный Метод

Parse an ini file and return values as array.
public parseIniFile ( string $iniFile ) : array
$iniFile string
Результат array
    public function parseIniFile($iniFile)
    {
        if (!file_exists($iniFile)) {
            throw new \Exception("'{$iniFile}' does not exist.");
        } else {
            $values = parse_ini_file($iniFile, true);
            if (!$values) {
                throw new \Exception("'{$iniFile}' is not a valid .ini file.");
            } else {
                return $values;
            }
        }
    }