Re: return issues

From: Date: Sun, 17 Aug 2003 14:25:28 +0000
Subject: Re: return issues
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355886@lists.php.net to get a copy of this message
On Sun, 17 Aug 2003, Heilig (Cece) Szabolcs wrote: > Hello! > > Here are some appereances of return in examples: > > return 0; > // 0 aren't variable, it's an expression. > // should it be return (0); ? no, why? > > return ($a < $b) ? -1 : 1; > // expression, i think return (($a < $b) ? -1 : 1); is the > // right choice Yes (This is exactly what I meant in an earlier email). Derick -- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------

« previous php.doc (#969355886) next »