Fork me on GitHub

IniParser

A powerful INI file parser with support for non-scalar constructs

Description

An INI configuration file parser which supports customizable key/value pair delimiter and comment marker, as well as support for more complex constructs like arrays and hashes.

Examples

<?php

require_once "class.ini-parser.php";

// Open the config file
$config = new IniFile("example.cfg");

// Print out the data
print_r($config->read);

?>