note 74223 added to control-structures.alternative-syntax
| From: | fusionstreamatgmaildotcom at osu1 dot php dot net | Date: | Fri, 30 Mar 2007 14:45:52 +0000 |
| Subject: | note 74223 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124954@lists.php.net to get a copy of this message | ||
A note on a "possible bug".
<?php
$a = "a"; //can be anything
$var = "some pretext " . ($a == $a) ? "true" : "false";
echo $var;
//will output "true"... it WILL NOT output "some pretext true"
?>
----
Server IP: 203.220.0.234
Probable Submitter: 165.21.155.15 (proxied: 121.6.51.17)
----
Manual Page -- http://www.php.net/manual/en/control-structures.alternative-syntax.php
Edit -- https://master.php.net/note/edit/74223
Del: integrated -- https://master.php.net/note/delete/74223/integrated
Del: useless -- https://master.php.net/note/delete/74223/useless
Del: bad code -- https://master.php.net/note/delete/74223/bad+code
Del: spam -- https://master.php.net/note/delete/74223/spam
Del: non-english -- https://master.php.net/note/delete/74223/non-english
Del: in docs -- https://master.php.net/note/delete/74223/in+docs
Del: other reasons-- https://master.php.net/note/delete/74223
Reject -- https://master.php.net/note/reject/74223
Search -- https://master.php.net/manage/user-notes.php