Re: PHP 7.1 - Address PHPSadness #28?

From: Date: Wed, 26 Aug 2015 18:50:34 +0000
Subject: Re: PHP 7.1 - Address PHPSadness #28?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-87941@lists.php.net to get a copy of this message
On Tue, Aug 25, 2015 at 11:09 PM, Scott Arciszewski <scott@paragonie.com> wrote: > Would anyone be interested in adding another helper like > isset()/empty() simply called exists() which would return true if the > variable is defined in the current scope (i.e. without raising an > E_NOTICE)? > Agree with Rowan as he mentioned here: http://stackoverflow.com/a/18646568/2908724 Perhaps this idiom will solve your use case? array_key_exists('x', compact('x'))); https://3v4l.org/TLdZI Cheers, bishop

« previous php.internals (#87941) next »