On 16/09/15 11:03, Rowan Collins wrote: > Lester Caine wrote on 15/09/2015 08:52: >> Saying 'use the array_key_exists() assumes you also >> know which array the variable is hiding in? > > Why would a variable ever be "hiding in" an array? If you're using an > associative array, you should know where that array is; if you're not, > what exactly are you trying to find?
If you are working with an array then fine, but we are talking about variables here not arrays. isset($i) is a local variable so 'which array is the variable is hiding in' applies? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php