6.7.1 Problem
You want to return a value by reference, not by value. This
allows you to avoid making a duplicate copy of a variable.
6.7.2 Solution
The syntax for returning a variable by reference is similar to
passing it by reference. However, instead of placing an
& before the parameter, place it before the name of the function:
function &wrap_html_tag($string, $tag = 'b') {
return "<$tag>$string</$tag>";
}
$html =& wrap_html_tag($string);