Re: doing $mc=new myclass(); or $mc= &new myclass(); ?
| From: | Peter Misun | Date: | Fri, 06 Jun 2003 11:47:11 +0000 |
| Subject: | Re: doing $mc=new myclass(); or $mc= &new myclass(); ? | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20220@lists.php.net to get a copy of this message | ||
why?
there is written, that not using & sign will assign only copy ov object created - that means,
you have one object 2 times in memory (in the first case)
5o
Dvdmandt wrote:
> I do believe you want the first version...
> "Peter Misun" <misun@microstep-mis.com> skrev i meddelandet
> news:3EE05D7E.3BD4FCDD@microstep-mis.com...
> >
> > need help:
> > what do you suggest to use:
> >
> > $mc = new myclass();
> > or
> > $mc = &new myclass();
> >
> > because in any tutorial I can see the first form, but on page "what
> references do" in PHP manual I found out the second form
> >
> > so?
> >
> > 5o
> >
> >
--
Mgr. Peter Misun
MicroStep-MIS, Ilkovicova 3, 841 04 Bratislava, Slovakia
tel: +421/ 2/ 602 00 127, 111, fax: +421/ 2/ 602 00 180