Concatenation has the same precedence as addition

This integrates user note 125110.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350033 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-06-14 11:52:10 +00:00
parent 3717f34598
commit 5390e7919f

View file

@ -125,8 +125,8 @@ echo "Hello ", isset($name) ? $name : "John Doe", "!";
</programlisting>
<para>
With concatenation, the period operator has a higher precedence than both
the addition and ternary operators, and so parentheses must be used for the
With concatenation, the period operator has the same precedence as
the addition operator, and higher precedence than the ternary operator, so parentheses must be used for the
correct behaviour:
</para>
<programlisting role="php">