Bug #10310: feature request

From: Date: Thu, 12 Apr 2001 19:29:21 +0000
Subject: Bug #10310: feature request
Groups: php.dev 
Request: Send a blank email to php-dev+get-51509@lists.php.net to get a copy of this message
From: fabiankessler@usa.net Operating system: all PHP version: 4.0.4 PHP Bug Type: Feature/Change Request Bug description: feature request function foo($a, $b, $c='hello', $d='world') { echo $c; } i'd like to use foo('a', 'b', NULL, 'c'); or even better foo('a', 'b', , 'c'); to have it echo 'hello', the default value. i have to workaround using function foo($a, $b, $c='hello', $d='world') { if (is_null($c)) $c = 'hello'; echo $c; } is there a better way? i really miss this vb-feature. greetings fab -- Edit Bug report at: http://bugs.php.net/?id=10310&edit=1

« previous php.dev (#51509) next »