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?

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to