* Thus wrote David T-G ([EMAIL PROTECTED]): > Curt, et al -- > > ...and then Curt Zirzow said... > % > % * Thus wrote David T-G ([EMAIL PROTECTED]): > % > > % > I have an ini file for my application and I use parse_ini_file to load it > % > and some custom code to save modifications. I'd like to figure out how > % > to store array values in there since that is the logical place to keep > ... > % > % You could always serialize the array to a value. and unserialize it > % after the call to parse_ini_file(). > > I thought about that, but what I'm really after is not having to do any > special processing for a variable -- both because it makes special cases > and because then I'd have to reserialize it if I were to write out a > change.
My other though, which I probably should have mentioned, was to patch php's ini handling to allow for something like [Section] var[1]=element1 var[2]=element2 ... Thus the results would be something like Array ( [Section] => Array ( var => Array ( [1] => element1 [2] => element2 ) ) ) I dont know if [] characters are valid in keys Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php