parse_ini_string

It parse a configuration string

Example

<?php

echo “<pre>”;

print_r(parse_ini_string(file_get_contents(“test.ini”)));

?>

Output

Array
(
[me] => phpcodez
[first] => http://www.phpcodez.com
)


“test.ini” file content

[names]

me = phpcodez


[urls]

first = “http://www.phpcodez.com”