test.ini file contains,
1 2 3 4 5 6 7 8 9 |
[names] me = Robert you = Peter [urls] first = "http://www.example.com" second = "http://www.w3schools.com" |
And to get any item in array of the ini file
1 2 3 4 5 |
$dog=parse_ini_file("test.ini"); print $dog["me"]; print $dog["you"]; |