On Tue, Aug 25, 2015 at 11:09 PM, Scott Arciszewski <sc...@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

Reply via email to