3
Weird, don't see anything about returning referenced values in the changelog for PHP5...
Have never really got the hang of these references, either. I mean, one thing is getting an object reference, but I don't see why this code needs a return by reference:
function &htmlSpecialChars($text)
{
return preg_replace("/&/i", '&', htmlspecialchars($text, ENT_QUOTES));
}
(Sorry, that was a bit off topic)