NYCPHP Meetup

NYPHP.org

[nycphp-talk] empty($array['foo']) versus array_key_exists('foo', $array)

Paul A Houle paul at devonianfarm.com
Mon Oct 25 13:03:12 EDT 2010


  On 10/25/2010 12:22 PM, David Mintz wrote:
> Anybody know of any reason not to save a little typing with
>
> empty($array['foo'])
>

     I think also this will throw an error or exception if you're 
running with E_STRICT,  which you should.



More information about the talk mailing list