note 37845 added to control-structures

From: Date: Sat, 29 Nov 2003 15:29:02 +0000
Subject: note 37845 added to control-structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-61139@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/control-structures.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37845 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37845&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37845&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61139) next »