parse_ini_file yes/no aware?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello group,

as far as i found out, parse_ini_file maps yes/no to php reserverd
This is not what i need. Is there any way to disable this behaviour?

I write some code to modify 3rd party ini files. everything is fine,
but not the
handling of "yes/no". Or, does anybody know a good open source class,
which implements this behaviour?



Re: parse_ini_file yes/no aware?

Dirk Laurenz wrote:

Quoted text here. Click to load it

No way to change that behaviour. You're going to need to write your own
INI-parsing implementation. There are a few examples of how to do this in
the PHP manual on the parse_ini_file page, in the comments at the bottom.

Toby A Inkster BSc (Hons) ARCS
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

Site Timeline