note 37845 deleted from control-structures by vincent
| From: | vincent@php.net | Date: | Sat, 29 Nov 2003 16:28:13 +0000 |
| Subject: | note 37845 deleted from control-structures by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61140@lists.php.net to get a copy of this message | ||
Note Submitter: php@jmvware.com
----
In the case of the example above...
/* $result = ( $expression ? $return_if_true : $return_if_false ) */
I lost a lot of hair on this one. If $expression is something like:
$a>1 and $a<10,
eg: $result = ( $a>1 and $a<10? 'yes' :'no' )
it will return true or false (0,1)), rather than the values (yes,no) you want.