FYI
Unless you need to modify and return modified contents of variables, pass by
reference makes script execution a little slower under PHP4.
--
Yasuo Ohgaki
""Neil Kimber"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Pass by reference itself is not
to hear of other
peoples views.
-Original Message-
From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]]
Sent: 30 March 2001 10:08
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Passing by reference deprecated?
FYI
Unless you need to modify and return modified contents of variables, pass by
reference makes
Ohgaki" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 6:51 PM
Subject: RE: [PHP] Passing by reference deprecated?
I'm surprised. I would have thought that it would have been the other way
around. Passing by reference should have similar implications to reference
count
Pass by reference itself is not deprecated, just call-time
pass-by-reference.
I believe this means your calling line of code being prevented from
specifying that it should be invoked as pass-by-reference.
So,
function NormalPassByRefence($prmValue)
{
$prmValue ++;
}
4 matches
Mail list logo