Description
Category:
Performance
A variable is passed by reference but its value is not modified. Contrary to popular belief, this actually
reduces
performance in most cases, so it's preferable to use the standard pass-by-value behavior.
Example
Inefficient
function
foo
(&
$a
)
{
echo
$a
;
}
Recommended
function
foo
(
$a
)
{
echo
$a
;
}