I Learn Something New Every Day – isset()

Check this out:

if (isset($a, $b, $c))
{
    unset($a, $b, $c);
}

Mulitple arguments. Looks like they’ve been there since an early PHP4 release, at least. Why does nobody tell me these things?

Tags:

  1. Albi’s avatar

    Intresting thing. Thanks!

  2. senshiakze’s avatar

    …. damn them developers. They should have a page dedicated soley to all the cool little things you would never thing to do, but can. This one of them.
    That is defiantly going to help in some scripts.
    Thanks for the tip!