Re: PHP 7.1 - Address PHPSadness #28?

From: Date: Tue, 15 Sep 2015 07:52:30 +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-88206@lists.php.net to get a copy of this message
On 15/09/15 04:16, François Laupretre wrote: > IMO, the best solution is the exists() construct. Given that there are often several ways to do the same thing is one extra helper really that much of a problem. Especially since it's action would be something that isset()/empty() combination should perhaps have covered when originally designed. With the drive to add typing and other checks it looks like it just plugs one of those holes that were previously missed? Saying 'use the array_key_exists() assumes you also know which array the variable is hiding in? -- 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 (#88206) next »