Re: More than one values returned?

From: Date: Tue, 19 Feb 2008 13:21:31 +0000
Subject: Re: More than one values returned?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-269608@lists.php.net to get a copy of this message
At 6:06 PM -0800 2/18/08, Nick Stinemates wrote:
Thats a good example, and a good reason for passing values by Reference instead of by Value. I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation.
That really depends upon what your functions are doing. If they are calculating variables that are related but independent upon each other (like x, y, z coordinates) it makes perfect sense to return more than value. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#269608) next »