6.4.3. Discussion
Passing a variable to a function by reference allows you to avoid the
work of returning the variable and assigning the return value to the
original variable. It is also useful when you want a function to
return a boolean success value of true or
false, but you still want to modify argument
values with the function.
You can't switch between passing a parameter by
value or reference; it's either one or the other. In
other words, there's no way to tell PHP to
optionally treat the variable as a reference or as a value.