Re: [PHP] Problem with references

2003-12-05 Thread Terry
Sorry if the title implies that I have a problem that needs solving. The title was meant to imply that I think PHP may have a 'problem' (or at least a shortcoming) with references. I am currently in the detailed design phase of a project. There are many possible ways to do things. One of the possi

Re: [PHP] Problem with references

2003-12-04 Thread David Otton
On Thu, 4 Dec 2003 09:58:09 -0800, you wrote: >David Otton <[EMAIL PROTECTED]> >on Thursday, December 04, 2003 3:43 AM said: > >> function f() >> { >> return (array (7, 5)); >> } >> >> list ($a, $b) = f(); > >Hey cool! I never knew about that. Yeah, compared with returning a pointer to

RE: [PHP] Problem with references

2003-12-04 Thread Chris W. Parker
David Otton on Thursday, December 04, 2003 3:43 AM said: > function f() > { > return (array (7, 5)); > } > > list ($a, $b) = f(); Hey cool! I never knew about that. Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.

Re: [PHP] Problem with references

2003-12-04 Thread Eduardo R. Maciel
> On Thu, 4 Dec 2003 11:16:10 -, you wrote: > >I wonder if there is a simple techique to help me here. I wish to return > 2 > >references to objects from a function. > > > >The following code describes what I want to do but obviously will not > work > >(and I understand why): > > > >function Te

Re: [PHP] Problem with references

2003-12-04 Thread David Otton
On Thu, 4 Dec 2003 11:16:10 -, you wrote: >I wonder if there is a simple techique to help me here. I wish to return 2 >references to objects from a function. > >The following code describes what I want to do but obviously will not work >(and I understand why): > >function Test (&$P1, &$P2) >{