This is really part of another post I made but figured it should exist on its own.
Let's say I created an associative (?, aka multidim'ed) array with parse_ini_file():
$my_array = parse_ini_file( "./myfile.ini");
How do I reference each element using the key name?
Also, how is a foreach() loop set up to deal with arrays? In perl the construct is '$_'; ala:
foreach ($my_array) {
echo($my_array[$][0] . "-" . $my_array[$][1] . "<br>");
}
TIA
Sean Shrum