null as function argumnent?

From: Date: Wed, 08 Dec 2004 19:58:58 +0000
Subject: null as function argumnent?
Groups: php.general 
Request: Send a blank email to php-general+get-203758@lists.php.net to get a copy of this message
Hi, I want to use a ?: statement. If not true de default function argument have to be used. How to do this <? function test($test='default') { echo $test; } test(($value==1)?'no default':null); ?> What do i have to pass instead of null to get default print? Tnx, Bas

« previous php.general (#203758) next »