hi,

On Wed, May 2, 2012 at 11:36 AM, Ferenc Kovacs <tyr...@gmail.com> wrote:

> $foo=null;
> var_dump(isset($foo)); //prints bool(false)

No offset meant, but it is totally expected and well known, and as far
as I remember documented too. Assigning NULL to a variable unsets it
(so to say).

>> empty() on the other hand, tests if something is empty, and only if it
>> is empty. The result of an expression can be empty.
>>
>
> an expression can also have a value of null.

And NULL is empty. No issue here.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

Reply via email to