RE: [PHP] Brain Death - [PHP] functions classes

From: Date: Sat, 26 Aug 2006 16:25:23 +0000
Subject: RE: [PHP] Brain Death - [PHP] functions classes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241130@lists.php.net to get a copy of this message
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. | `------------------------------------------------------------'

« previous php.general (#241130) next »