Location: PHPKode > scripts > Simple INI > simple-ini/sample.php
<?php
    include_once('Ini.class.php');
    $objIni = new IniParser( 'sample.ini' );

    echo $objIni->getValue('foo') . "\n";
    echo $objIni->getValue('bar') . "\n";
    echo $objIni->getValue('dummy') . "\n";

    $objIni->setValue('foo', 'foo');
    $objIni->setValue('bar', 'bar');
    $objIni->setValue('dummy', '"Master system :)"');

    echo "#### Split ####\n";

    echo $objIni->getValue('foo') . "\n";
    echo $objIni->getValue('bar') . "\n";
    echo $objIni->getValue('dummy') . "\n";

    $objIni->saveFile();
?>
Return current item: Simple INI