Posted by gosha bine on 09/11/07 13:58
On 11.09.2007 15:39 Sanders Kaufman wrote:
> gosha bine wrote:
>> On 11.09.2007 15:02 Sanders Kaufman wrote:
>>> 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?
>>
>> no, only in the declaration
>>
>>> Like thus:
>>> function fnClassify(&$oClass){
>>> $oClass->a = 1;
>>> return true;
>>> }
>>
>> correct
>>
>>> ... and so:
>>> $bSuccess = fnClassify(&$oMyClass);
>>>
>>
>> incorrect
>>
>>>
>>>> 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.
>>
>> good luck ;)
>
> T'worked. Thanks. Gimme the name of a charity and maybe I'll Paypal
> 'em a few bucks.
You must be 18+ to do this. Are you?
--
gosha bine
makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi
Navigation:
[Reply to this message]
|