Actually it is not a bad idea to do it so...
A few months ago I asked the same question and it was:
Is this good coding practice:
$var = & nl2br($var);
The conclusion of the debate was:
the worst thing it can happen is nothing...
the best thing it can happen is a bit of time & memory saving.....
hope this helps....
point
"Tole" <to*******************@yahoo.com> wrote in message
news:bj************@ID-132821.news.uni-berlin.de...
hi all,
i have some doubts in passing variables by references in php.
i usually use
class blah
{
function Params( &$params)
{
$this->params =& $params;
}
}
where $params is an array.
is the second & unnecessary?
is there any difference if $params is object instead of array?
thnx
tole