I am wondering if there is anyway to (in an .ini file) implement something that when parsed by the parse_ini_file() (in php) will create a multidimensional array instead of just an associative array?
I've been searching but have came up empty, so I was wondering if anyone over here might have an idea on whether something like this is allowed or not.
Example:
file.ini (semi-sudo-code):
input = input1 = ('Hello world this is test #1')
input = input2 = ('Hello world this is test #2')
code.php:
$array = parse_ini_file("file.ini", true);
print_r($array);
Expected output:
Array
(
[input] => Array
(
[input1] => Hello world this is test #1
[input2] => Hello world this is test #2
)
)
.inifile so want to see if there is a way to get a multidimensional array while using it.