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
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
Comment