svn: /phpdoc/en/trunk/language/ operators.xml
| From: | Richard Quadling | Date: | Fri, 04 Dec 2009 09:19:37 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ operators.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5607@lists.php.net to get a copy of this message | ||
rquadling Fri, 04 Dec 2009 09:19:37 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291695
Log:
Make examples consistent. Fix #50372
Bug: http://bugs.php.net/50372 (Assigned) Ternary statements
are not identical
Changed paths:
U phpdoc/en/trunk/language/operators.xml
Modified: phpdoc/en/trunk/language/operators.xml
===================================================================
--- phpdoc/en/trunk/language/operators.xml 2009-12-04 08:52:07 UTC (rev 291694)
+++ phpdoc/en/trunk/language/operators.xml 2009-12-04 09:19:37 UTC (rev 291695)
@@ -1283,7 +1283,7 @@
// this is because ternary expressions are evaluated from left to right
// the following is a more obvious version of the same code as above
-echo ((true ? 'true' : 'false') ? 't' : 'f');
+echo ((true ? 'true' : false) ? 't' : 'f');
// here, you can see that the first expression is evaluated to 'true', which
// in turn evaluates to (bool)true, thus returning the true branch of the