Re: Argument passed by reference?
| From: | Chris | Date: | Tue, 11 Apr 2006 01:08:09 +0000 |
| Subject: | Re: Argument passed by reference? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233714@lists.php.net to get a copy of this message | ||
Joe Henry wrote:
On Friday 07 April 2006 5:06 pm, tedd wrote:It's not that it's not allowed, it's that it should be done differently. You should make the function accept a reference in the definition, not pass in a reference to the function. The manual page has a good, simple example on what to do. http://www.php.net/manual/en/language.references.pass.php -- Postgresql & php tutorials http://www.designmagick.com/At 1:52 PM -0500 4/6/06, Chris Boget wrote:I'm not sure when this happened. I'm fairly new to php, myself. Maybe someone else could answer that?Chris: Please forgive my ignorance, but when did that happen?The way I understand it, pass by reference in php is determined in the function definition and not the function call. Something like:You used to be able to pass by reference at run time. But I see that is no longer allowed... :| So I guess that makes my question moot. Thanks for your help. thnx, Chris