Re: storing an array in an ini file
| From: | John Holmes | Date: | Tue, 13 Apr 2004 23:48:07 +0000 |
| Subject: | Re: storing an array in an ini file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183271@lists.php.net to get a copy of this message | ||
David T-G wrote:
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 config data. If I can't, I could probably use a string with @@ or | in it as the token but an array is so much more elegant because that's what it's meant to do :-)If you really need to define arrays, just put them in a .php file and include() it. You're just going to use some hack to do it with an .ini file and parse_ini_file(), so why bother? ---John Holmes...