Voting

: six minus one?
(Example: nine)

The Note You're Voting On

dnhuff at acm dot org
17 years ago
In reply to Drewseph using foo($a = 'set'); where $a is a reference formal parameter.

$a = 'set' is an expression. Expressions cannot be passed by reference, don't you just hate that, I do. If you turn on error reporting for E_NOTICE, you will be told about it.

Resolution: $a = 'set'; foo($a); this does what you want.

<< Back to user notes page

To Top