hi, > Because some of the keys are case-insensitive and some aren't. Case > insensitive hashes don't work if you want to mix the keys. > In any case, I think the solution above is a good one because there are > only 5 constants in the Zend Engine which are case-insensitive.
somewhere it was mentioned that the case-sensitivity could be either switched on or off with a configuration directive. please refrain from using too many configuration directives which change the behaviour of PHP. it's a pain to develop a PHP script witch catches all these special behaviours. for example, i cannot rely on $PHP_SELF being only the script-name (depends on whether it's installed as mod_php or PHP CGI), thus I got used to write basename($PHP_SELF); which solves this problem. but a normal PHP developer (=98%) just cannot know ALL "special behaviours" of PHP. Kind Regards, Daniel Lorch -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]