I try to parse something from a file, and can't get it to work..
If i do:
$idd = 11;
$aInifile = parse_ini_file('status.ini', 'reply');
echo 'test : ' . $aInifile['reply']['11'];
Then i get the correct reply. But if i use:
$idd = 11;
$aInifile = parse_ini_file('status.ini', 'reply');
echo 'test : ' . $aInifile['reply'][$idd];
Then it do not work... So how can i get it working, using the $idd variable?
My .ini file
[reply]
0 = "In progress (a normal message submission, with no error encountered so far)"
10 = "Delivered upstream"
11 = "Delivered to mobile"
Have tried a lot of things, also searched on Google, so betting on help from you guys here!