Location: PHPKode > scripts > INI File Parser > ini-file-parser/parseini-sample.php
<?php

/**
 * This is an example for how to use the parseini class
 * $arr is returned as a multidimensional, associative array with each top level key representing
 * a section from the ini file.  Below the top level keys are the variables and values.
 * 
 * Code written by Roy Cunningham - March 17, 2008 (rc<numberone> at hesperides dot ca)
 * This is licensed under the GPL - feel free to use and redistribute, but keep this license disclaimer intact.
 * Have fun!
 */


include 'parseini.class.php';

$a = new parseini;

$arr=$a->parse('parseini.ini');

print "<P><pre>";
print_r($arr);
print "</pre>";

?>
Return current item: INI File Parser