0
Why is the output like this??
in this php code: <?php for ($a = 0; $a < 6; $a++) { echo "Value of a : "+ $a + "<br />"; } ?> output: 012345 why does the string text dont get printed?
5 odpowiedzi
+ 6
Try to write
echo "Value of a : ". $a ."<br/>"; instead
+ 6
Sorry I don't know 😕😕
And you're welcome 👍👍
+ 1
yes, that is there it works with the dot .
but do you know what happens when the + symbol is put?
thanks
+ 1
In php + is meant for arithmetic operations only for concatation u need use .(dot) operator
0
yes thank you very much