Location: PHPKode > scripts > Read Ini Files > read-ini-files/example.php
<?

/*
**************************************************************************Usage: $obj = new readini;
       $var = $obj->ReadIniValue (file_name, key_name, var_name);
***************************************************************************/

include "readini.class.php";

    $ini = new readini;
    print $ini->ReadIniValue("test.ini", "company", "companyname");
    print "<br>";
    print $ini->ReadIniValue("test.ini", "company", "cityname");
    print "<br>";
    print $ini->ReadIniValue("test.ini", "country", "countryname");
    print "<br>";
    print $ini->ReadIniValue("test.ini", "amount", "cash");
    print "<br>";

?>
Return current item: Read Ini Files