Parse an ini file and returns the settings in it in an array in PHP
Description
The following code shows how to parse an ini file and returns the settings in it in an array.
Example
//w w w .ja v a 2s .c om
<?php
print_r(parse_ini_file("test.ini"));
?>
/*
Contents of "test.ini":
[urls]
first = "http://www.example.com"
second = "http://www.java2s.com"
*/