On 20 September 2015 01:43:06 BST, Ryan Pallas <derokor...@gmail.com> wrote:
>I would also point out that is_null returns true (after the engine
>produces
>a notice) for undefined variables:
>
>$ php -r "var_dump(is_null($a));"
>
>Notice: Undefined variable: a in Command line code on line 1
>
>Call Stack:
>     0.0001     118888    1. {main{() Command line code:0
>
>*bool(true)*

And you know why it does that? For consistency with this:

$ php -r "var_dump($a);"

Notice: Undefined variable: a in Command line code on line 1

NULL



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to