mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
3717f34598
commit
5390e7919f
1 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue