> -----Original Message-----
> From: Jon Haworth [mailto:[EMAIL PROTECTED]]
> Sent: 19 September 2002 18:18
> What are peoples' thoughts on "one should always return a value from a
> function, even if it's always going to be true"?


There's no point in returning a value if there's no sensible value to return.

Confusion can arise because PHP uses "function" for what, in some other languages, are 
distinguished into "functions" (which must return a value) and "subroutines" (which 
cannot).  Anyone insisting that a function must return a result have probably been 
exposed only (or primarily) to such languages ;-Z !!



Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

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

Reply via email to