[wd_asp elements=’search’ ratio=’100%’ id=1]

Get Array values from php ini file

27th August 2014

Php - Miscellaneous

php codehaven

test.ini file contains,

[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

$dog=parse_ini_file("test.ini");
print $dog["me"];
print $dog["you"];