(recall: eliminating warning is as important as dealing with errors. u can't figure out which warning is relative to the problem if there's too many noise warning.)
all of u in -internals is expert. u might have forgot how ppl learn php. "simple" is the spirit of php, but is adding feature always make php complex? in the following example, it's actually much simple, it's not the problem we type how much letters it's 'how' we code, how the beginner will code. *** if u give the beginners "ifsetor", they will use it happily, not the "isset + ?:" one. u might say "hey, beginners should always learn not to be one". but i would say, no. there're many beginners who write many big programms(and bad), they even share it with others but don't even know he should do this that way and do that this way.(think of why there is non-addslashed code which lead to sql injection, and use of eval which lead to php injection, and .. ) +1 for "ifsetor" but btw, "ifsetor" might be complex for non-englishs. "default" might be better. ----- > $value = (integer) (isset($myBigArray['SomeKey1']['SomeOtherKey']) ? > $myBigArray['SomeKey1']['SomeOtherKey'] : 0); > > where > > $value = ifsetor($myBigArray['SomeKey1']['SomeOtherKey'], 0); > > is a bit cleaner. no, it's a lot! > > Thanks. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php