diff --git a/language/operators.xml b/language/operators.xml index a952ff2c92..40c5d9a5f1 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1793,7 +1793,7 @@ if (empty($_POST['action'])) { echo (true ? 'true' : false ? 't' : 'f'); // however, the actual output of the above is 't' prior to PHP 8.0.0 -// this is because ternary expressions are evaluated from left to right +// this is because ternary expressions are left-associative // the following is a more obvious version of the same code as above echo ((true ? 'true' : false) ? 't' : 'f');