[settings]
name=John
age=33
... this code will read the entire INI file into $arr and display the contents:
$arr=ini_get_array("/ini_get_array_example.ini");
print_r($arr);
?>
... and the output will be:
[$arr] = Array (
[settings] = Array (
(string) [name] => John
(int) [age] => 33
)
)
====See Also====
[[ini_get()]] - Get a value from an INI file
[[ini_put_array()]] - Write a group of parameters to an INI file from an array
[[ini_set()]] - Set a value in an INI file