NYCPHP Meetup

NYPHP.org

[nycphp-talk] passing optional arguments by reference

Eric Persson eric at persson.tm
Fri Jan 16 21:06:59 EST 2004


Daniel Convissor wrote:

> On Fri, Jan 16, 2004 at 07:46:10PM +0100, Eric Persson wrote:
> 
>>function &execute($stmt, &$data = '' ) {
> 
> 
> That produces a parse error too.
Mmm..well, you're right, but thats probably caused by the &before $data, 
if you skip that and then go with

execute($stmt, &$data);

when you call the function, should give the same result?

//Eric
--
Download the new Mozilla Firebird web browser at 
http://www.mozilla.org/products/firebird/



More information about the talk mailing list