+ 18

What does the >>> echo $i . ' '; <<< mean in this code?

https://code.sololearn.com/w500x9SqDAfG/?ref=app

14th Jun 2018, 7:53 AM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
6 Réponses
+ 5
it is printing the value of i which is in for loop
14th Jun 2018, 8:09 AM
PRAMOD JANA
PRAMOD JANA - avatar
+ 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.
14th Jun 2018, 8:13 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 5
it's means 'i' is variable contain some data or value in for loop
15th Jun 2018, 12:50 PM
Shreena Jani
Shreena Jani - avatar
+ 5
to separate the elements of the for loop
16th Jun 2018, 12:22 AM
Mik
Mik - avatar
+ 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.
16th Jun 2018, 1:53 AM
Kirk Schafer
Kirk Schafer - avatar
+ 2
here it means it will first echo $i and then echo a black space
22nd Jun 2018, 8:59 AM
E4GL
E4GL - avatar