Posted by Sanders Kaufman on 09/11/07 13:02
gosha bine wrote:
> On 11.09.2007 14:20 Sanders Kaufman wrote:
> In php4 you should prepend & to any variable or a function parameter
> containing or refering to an object. Examples include:
"Containing or referring, eh?
So - I should put the byref "&" thing in BOTH the function call AND the
function defintion?
Like thus:
function fnClassify(&$oClass){
$oClass->a = 1;
return true;
}
.... and so:
$bSuccess = fnClassify(&$oMyClass);
> Again, all this is needed only for php4. I can't think of a good reason
> to use it.
That's where I'm at with this thing - 4.
[Back to original message]
|