note 24890 deleted from language.operators.comparison by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Wed, 04 Sep 2002 23:12:35 +0000 |
| Subject: | note 24890 deleted from language.operators.comparison by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-36133@lists.php.net to get a copy of this message | ||
Even in C this is bad practice...
He should use:
if (cond) return val1; else return val2;
Or:
return cond ? val1 : val2;