From 5390e7919f8912672073bd6d412bcdef9f18a189 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Sun, 14 Jun 2020 11:52:10 +0000 Subject: [PATCH] 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 --- reference/strings/functions/echo.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/strings/functions/echo.xml b/reference/strings/functions/echo.xml index f80bbe5ae9..6501c23258 100644 --- a/reference/strings/functions/echo.xml +++ b/reference/strings/functions/echo.xml @@ -125,8 +125,8 @@ echo "Hello ", isset($name) ? $name : "John Doe", "!"; - 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: