Location: PHPKode > scripts > A simple ini parser > a-simple-ini-parser/example.php
<?php
/******************************************************
 * ©2006 copyrights by RE-Desgin (cms.re-design.de)   *
 * Author: Enrico Reinsdorf (hide@address.com) *
 * Modified: 2006-01-16                               *
 ******************************************************/

include("class.iniparser.php");

$cfg = new iniParser("config.ini");

$name = $cfg->get("Owner","firstname")." ".$cfg->get("Owner","lastname");
echo $name;

$tool = $cfg->get("Tool");
print_r($tool);
$cfg->setValue("Tool","version", "0.9beta");

print_r($cfg);


?>
Return current item: A simple ini parser