Dots for the variable in the loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Dots for the variable in the loop

so the question is pretty straight forward, why do we put the variable in the loops between two dots ? and what is the point of the and why the code doesn't work without them? example: echo "Value of a : ". $a . "<br />";

5th Oct 2016, 2:12 PM
Ghaith Zamrik
Ghaith Zamrik - avatar
1 Answer
+ 1
We call it concatenate ☺️ It's basically to dissociate php code in html code
12th Oct 2016, 5:13 AM
Bruno ANTUNES
Bruno ANTUNES - avatar