I am playing with multidimensional arrays on a config.ini file: I am trying to use the customs sections of an ini to create my array, but failed to do so.
I have a following ini files.
[globals]
[foo]
a=1
b=2
[foo.hash]
x=1
y=2
z=3
and when I do a var_dump in the variable it returns null. However, if I do the following it works.
[globals]
foo[a]=1
foo[b]=2
foo[hash]=1,2,3
but then I do not have the keys of the hash section
I was following this: this (doc custom sections)
and so I want to replicate this in the ini:
$f3->set('foo',array(
'a' => 1,
'b' => 2,
'hash' => array(
'x' => 1,
'y' => 2,
'z' => 3
)
));
Could you let me know what am I doing wrong ?
Thanks in advance.