I have tried reading parameters from php ini files using parse_ini_file
Here is my code
$param_array=parse_ini_file("test.ini");
print $param_array[0];
print $param_array[1];
Above code returns nothing
test.ini file contains,
[names]
me = Robert
you = Peter
[urls]
first = "http://www.example.com"
second = "http://www.w3schools.com"
Now i need to call the Robert & Peter
If you’d have rather consulted the Manual Pages instead of w3fools, you’d have seen a reliable example where it’s shown that the returned array is associative, that is, the names of the properties are the keys of the array.
So instead of
you should use
to access “Robert”