note 32131 deleted from functions.arguments by alindeman

From: Date: Sun, 18 May 2003 16:17:31 +0000
Subject: note 32131 deleted from functions.arguments by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48527@lists.php.net to get a copy of this message
Note Submitter: Carlos ---- It seems you cannot use 'optional' parameter whenever using referencts. Something close to function( $a, $b="default") { ... } with references could look: function( &$a, &$b="default" ) { ... } I can understand such syntax &$b="default" may be disallowed, but I see no workaround. This: function( &$a, &$b=NULL ) does not work too. Any ideas how to have *optional* parameter passed by reference? PHP4.2.1 if anyone cares.

« previous php.notes (#48527) next »