[snip]
Please don't reply if you really, really don't know what you are talking
about.
[/snip]
Talk about alienating yourself right up front.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Aidan Lister ([EMAIL PROTECTED]):
How _should_ this be done? In terms of best practice.
?php
function foobar ()
{
return new SomeObject;
}
?
Or:
?php
function barfoo ()
{
* Thus wrote Aidan Lister ([EMAIL PROTECTED]):
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Aidan Lister ([EMAIL PROTECTED]):
...
Please don't reply if you really, really don't know what you are talking
about.
What kind of requirement is
: [EMAIL PROTECTED]
Subject: Re: [PHP] Returning an object
* Thus wrote Aidan Lister ([EMAIL PROTECTED]):
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Aidan Lister ([EMAIL PROTECTED]):
...
Please don't reply if you really, really don't know what you
On Fri, 7 May 2004 11:35:24 +1000
Aidan Lister [EMAIL PROTECTED] wrote:
How _should_ this be done? In terms of best practice.
I'd choose this way:
function foo()
{
return new Object;
}
--
Petr U.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
* Thus wrote Aidan Lister ([EMAIL PROTECTED]):
How _should_ this be done? In terms of best practice.
?php
function foobar ()
{
return new SomeObject;
}
?
Or:
?php
function barfoo ()
{
$tempvar = new SomeObject;
return $tempvar
}
?
I'm not exactly sure what your
Aidan Lister wrote:
Please don't reply if you really, really don't know what you are talking
about.
Okay, I won't reply.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals www.phparch.com
--
PHP General Mailing List
7 matches
Mail list logo