Nick Eby wrote:
true or false:

when declaring a function, a given argument can be declared to pass by
reference, or can be declared to have a default value, but never both.

i.e., you can only write one of:
function foo(&$param)
function foo($param = "bar")

but never the equivalent of:
function foo(&$param = "bar")

is there a way to declare an argument with both pass-by-reference and
default-value properties?
No, but this will be supported by Zend Engine 2, which will drive PHP 5 and higher.

--

-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to