Re: PHP 7.1 - Address PHPSadness #28?

From: Date: Wed, 16 Sep 2015 10:35:35 +0000
Subject: Re: PHP 7.1 - Address PHPSadness #28?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-88227@lists.php.net to get a copy of this message
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

« previous php.internals (#88227) next »