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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to