Why don't make the function return FALSE if parameter equals NULL ? -- (c) Kenan Sulayman Freelance Designer and Programmer
Life's Live Poetry 2009/1/28 Paul Biggar <paul.big...@gmail.com> > On Wed, Jan 28, 2009 at 6:39 PM, Dan <d...@dancryer.com> wrote: > >> > >> You're assumption is wrong then, NULL isn't treated as not passing a > >> value. The reason it worked with substr was by pure chance. > >> > > > > Out of interest, is there a reason that that is the case? Surely passing > > null would be best treated as the same as passing nothing? > > NULL is a value. There is no way to tell that when you pass NULL, you > actually intended to pass nothing and use the default value. > > Paul > > > -- > Paul Biggar > paul.big...@gmail.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >