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
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 --
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
3 matches
Mail list logo