0

Why echo " all statement";

the output will be wrong in real editors should use concatenation

16th Aug 2018, 7:01 PM
Abderraouf Seniguer
Abderraouf Seniguer - avatar
2 Answers
0
The PHP concatenation is a dot(.) Example : $a = 5; $b = 6; $r = $a + $b; echo "The sum of ". $a . " and " . $b . " is = " . $r;
16th Aug 2018, 7:59 PM
Lucas
Lucas - avatar
0
thanks that's what I am talking about so the syntax shown in the course is wrong
16th Aug 2018, 8:24 PM
Abderraouf Seniguer
Abderraouf Seniguer - avatar