Re: [PHP] passing by reference via the variable arg list

2002-09-24 Thread Trevor Dowling
Thought as much after some head scratching, Thanks "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Not possible, but workaround is to pass the variable name and use it as > a variable variable, but for this the variable needs to be global. >

Re: [PHP] passing by reference via the variable arg list

2002-09-24 Thread Marek Kilimajer
Not possible, but workaround is to pass the variable name and use it as a variable variable, but for this the variable needs to be global. Trevor Dowling wrote: >Can anyone help with this? > >I am relativly new to PHP and am trying to use variable numbers of >parameters to functions using the f

Re: [PHP] passing by reference

2001-12-27 Thread Andi Gutmans
On Thu, 27 Dec 2001, Kancha . wrote: > I coulnd't figure out the difference between the two: > > function &foo(){ > $x = "hello"; > return $x; > } > > and > > function foo(){ > $x = "hello"; > return &$x; > } return &$x will give you a parser error. Andi -- PHP General Mailing Li

Re: [PHP] Passing by reference deprecated?

2001-03-30 Thread Yasuo Ohgaki
lt;[EMAIL PROTECTED]> To: "Yasuo 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

RE: [PHP] Passing by reference deprecated?

2001-03-30 Thread Neil Kimber
7;d be interested 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, pas

Re: [PHP] Passing by reference deprecated?

2001-03-30 Thread Yasuo Ohgaki
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 depr

RE: [PHP] Passing by reference deprecated?

2001-03-29 Thread Neil Kimber
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 ++; } $n