On Sat, 2006-08-26 at 16:51 +0100, Alex Turner wrote:
> Rob,
> 
> I'd go along with the setting a var to null issue (in the cases
> I have worked so far on, there has not been a need to set variables
> to null).


Maybe so, but if a variable ever happens to contain null and you're not
aware of it, the value won't get updated.

> However, what is wrong with is_null()?

As a function call it's an order of magnitude slower than === null since
it incurs the overhead for a function call. There's nothing wrong with
your use of the is_null() function, but === null is just as clear, and
much faster so I thought I'd throw at you in line with your coffee
comment :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to