cvs: phpdoc /en/language operators.xml

From: Date: Wed, 07 Jan 2009 13:10:41 +0000
Subject: cvs: phpdoc /en/language operators.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2946@lists.php.net to get a copy of this message
vrana Wed Jan 7 13:10:41 2009 UTC Modified files: /phpdoc/en/language operators.xml Log: Document short ?: http://cvs.php.net/viewvc.cgi/phpdoc/en/language/operators.xml?r1=1.128&r2=1.129&diff_format=u Index: phpdoc/en/language/operators.xml diff -u phpdoc/en/language/operators.xml:1.128 phpdoc/en/language/operators.xml:1.129 --- phpdoc/en/language/operators.xml:1.128 Wed Dec 10 01:46:02 2008 +++ phpdoc/en/language/operators.xml Wed Jan 7 13:10:41 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.128 $ --> +<!-- $Revision: 1.129 $ --> <chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook"> <title>Operators</title> <simpara> @@ -694,6 +694,12 @@ <replaceable>expr3</replaceable> if <replaceable>expr1</replaceable> evaluates to &false;. </para> + <para> + Since PHP 5.3, it is possible to leave out the middle part of the ternary + operator. Expression <literal>expr1 ?: expr3</literal> returns + <replaceable>expr1</replaceable> if <replaceable>expr1</replaceable> + evaluates to &true;, and <replaceable>expr3</replaceable> otherwise. + </para> <note> <simpara> Please note that the ternary operator is a statement, and that it

« previous php.doc.cvs (#2946) next »