+ 18
What does the >>> echo $i . ' '; <<< mean in this code?
6 Respuestas
+ 5
it is printing the value of i which is in for loop
+ 5
It joins each element which it prints by space. Your code doesn't work because you should put php opening and closing tags <?PHP and ?> and whole your code should be inside the tags.
+ 5
it's means 'i' is variable contain some data or value in for loop
+ 5
to separate the elements of the for loop
+ 5
In PHP, the period (.) serves the same purpose as the plus (+) in other languages: string concatenation.
Here, PHP will treat the integer ($i) as a string before appending the space, for output.
+ 2
here it means it will first echo $i and then echo a black space