Re: not_null function
| From: | Andrey Andreev | Date: | Fri, 04 Jul 2014 07:18:34 +0000 |
| Subject: | Re: not_null function | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75242@lists.php.net to get a copy of this message | ||
HI,
Not any that I'm aware of, and I personally have never used is_null().
I share your opinion that we don't really need is_null(), but with BC
in mind, I don't think it would get removed.
Cheers,
Andrey.
On Fri, Jul 4, 2014 at 1:47 AM, Kris Craig <kris.craig@gmail.com> wrote:
>> $var !== null
>> ! is_null($var)
>
>
> Is there any *practical* difference between these two? I mean, aside from
> performance? I still don't get why we need is_null() at all if the exact
> same thing can be accomplished-- but with better performance-- with ===
> NULL.
>
> --Kris
>