note 30143 deleted from language.references.pass by sniper

From: Date: Tue, 30 Sep 2003 01:23:57 +0000
Subject: note 30143 deleted from language.references.pass by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57337@lists.php.net to get a copy of this message
Note Submitter: phpdoc@regs.nebcorp.com ---- It doesn't appear possible to both pass by reference and set a default value (thus making the argument optional). This is in PHP 4.1.2. The following code doesn't work: function foo($bar, &$baz=null){ // do some stuff }

« previous php.notes (#57337) next »