Re: Re: [PHP] Class instance pointers

2011-11-29 Thread Tim Streater
On 29 Nov 2011 at 17:01, cimodev wrote: > Am 29.11.2011 16:56, schrieb Tim Streater: >> Is there any benefit to setting a pointer to a class instance to null before >> returning from a function? As in: >> >> function myfunc () >> { >> $p = new myclass (); >> // do stuff >> $p

Re: [PHP] Class instance pointers

2011-11-29 Thread Jim Lucas
On 11/29/2011 7:56 AM, Tim Streater wrote: > Is there any benefit to setting a pointer to a class instance to null before > returning from a function? As in: > > function myfunc () > { > $p = new myclass (); > // do stuff > $p = null; > } > > Thanks. > > -- > Cheers --

Re: [PHP] Class instance pointers

2011-11-29 Thread cimodev
Am 29.11.2011 16:56, schrieb Tim Streater: > Is there any benefit to setting a pointer to a class instance to null before > returning from a function? As in: > > function myfunc () > { > $p = new myclass (); > // do stuff > $p = null; > } > > Thanks. > > No! In this case