Re: Returning an object
| From: | Petr U. | Date: | Fri, 07 May 2004 01:59:38 +0000 |
| Subject: | Re: Returning an object | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185581@lists.php.net to get a copy of this message | ||
On Fri, 7 May 2004 11:35:24 +1000
"Aidan Lister" <aidan@php.net> wrote:
> How _should_ this be done? In terms of "best practice".
I'd choose this way:
function &foo()
{
return new Object;
}
--
Petr U.