T Thịnh Võ Member Sep 20, 2021 #1 What will be the output of the following PHP code? Code: <?php $color1 = "red"; $color2 = "1"; echo "$color1" + "$color2"; ?> A. red1 B. red 1 C. 0 D. 1
What will be the output of the following PHP code? Code: <?php $color1 = "red"; $color2 = "1"; echo "$color1" + "$color2"; ?> A. red1 B. red 1 C. 0 D. 1
N Như Quỳnh Lan New member Sep 20, 2021 #2 Answer: d Explanation: + just returns the numeric value even though it is inside double quotes. Upvote 0 Downvote