Re: More than one values returned?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux