diff --git a/language/operators.xml b/language/operators.xml index 932f80dd4d..901bee09ea 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1,5 +1,5 @@ - + Operators @@ -694,6 +694,12 @@ if (empty($_POST['action'])) { expr3 if expr1 evaluates to &false;. + + Since PHP 5.3, it is possible to leave out the middle part of the ternary + operator. Expression expr1 ?: expr3 returns + expr1 if expr1 + evaluates to &true;, and expr3 otherwise. + Please note that the ternary operator is a statement, and that it