src/IniParser.php
public function parse($file = null) {
        if ($file !== null) {
            $this->setFile($file);
        }
        if (empty($this->file)) {
            throw new LogicException("Need a file to parse.");
        }

        $simple_parsed = parse_ini_file($this->file, true);
        $inheritance_parsed = $this->parseSections($simple_parsed);
        return $this->parseKeys($inheritance_parsed);
    }
public function parse($file = null) {
        if ($file !== null) {
            $this->setFile($file);
        }
        if (empty($this->file)) {
            throw new LogicException("Need a file to parse.");
        }

        $simple_parsed = parse_ini_file($this->file, true);
        $inheritance_parsed = $this->parseSections($simple_parsed);
        return $this->parseKeys($inheritance_parsed);
    }
public function parse ( $ file = null ) { if ( $ file !== null ) { $ this -> setFile ( $ file ) ; } if ( empty ( $ this -> file ) ) { throw new LogicException ( "Need a file to parse." ) ; } $ simple_parsed = parse_ini_file ( $ this -> file , true ) ; $ inheritance_parsed = $ this -> parseSections ( $ simple_parsed ) ; return $ this -> parseKeys ( $ inheritance_parsed ) ; }
Parses an INI file

@param string $file
@return array
Parses an INI file