> operation works well, but I find it pretty obnoxious that: > > (1) This throws warnings on a missing keys if a certain bit is set in > error_reporting, and > (2) It's not possible to have strict checking of variable names without also > turning on strict checking of array keys (which I'd usually expect to be a > bit sloppier) > > Any thoughts?
+1 The lack of a default dictionary in php does suck. Of course one can work around this with a function like issetor($array,$key,$default), but in my opinion that makes for ugly code. Of course it is possible to create a class with this behavior using SPL, but that doesn't take care of the superglobals and there might be performance problems. -John Campbell _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php
