Hi Adam,

> > What are peoples' thoughts on "one should always return 
> > a value from a function, even if it's always going to be 
> > true"?
> > 
> I'd say skip it if you know your never returning anything 
> different.

Yeah, that's what I was leaning towards :-)

What prompted the question was a constructor like this:

class foo {
  var $timestamp;
  function foo () {
    $this->timestamp = mktime();

I just can't see any reason to return anything from it, unless someone wants
to tell me otherwise...


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

Reply via email to