[nycphp-talk] isset or not
Christopher Hendry
chendry at nyc.rr.com
Wed Feb 11 17:21:00 EST 2004
I find myself testing arrays for certain values all the time (of course) -
but sometimes the element may not be set, so to avoid the Notice that the
index does not exist, I often wrap the test in an isset. This seems a
little silly to me, and I wonder if anyone has a more elegant approach to
handling this (besides better code :) or if there is some simple PHP
function I'm just not using...
C
More information about the talk
mailing list