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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to