RE: [PHP] Returning an object

2004-05-07 Thread Jay Blanchard
[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

Re: [PHP] Returning an object

2004-05-07 Thread Aidan Lister
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 () {

Re: [PHP] Returning an object

2004-05-07 Thread Curt Zirzow
* 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

Re: [PHP] Returning an object

2004-05-07 Thread deseavers
: [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

[PHP] Returning an object

2004-05-06 Thread Aidan Lister
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 } ? Please don't reply if you really, really don't know what you are talking about. -- PHP General

Re: [PHP] Returning an object

2004-05-06 Thread Petr U.
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:

Re: [PHP] Returning an object

2004-05-06 Thread Curt Zirzow
* 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

Re: [PHP] Returning an object

2004-05-06 Thread John W. Holmes
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