[PHP4BETA] default null value

From: Date: Fri, 16 Apr 1999 14:39:17 +0000
Subject: [PHP4BETA] default null value
Groups: php.version4 
Request: Send a blank email to php-version4+get-127@lists.php.net to get a copy of this message
Another feature question. Often, I find myself needing to set default parameter to a function to a sort of NULL value, so that if I don't pass that default parameter when I call it, the variable will not be set. Usually, in PHP3 I did it like this: function foo($var=_NULL_) { } And then compared it with _NULL_ each time. It'd be nice if you could say $var=<something> so that it's not set. -Andrey * George Orwell was an optimist. * -- PHP 4 Beta

« previous php.version4 (#127) next »