0

What is the use of this( . ' ' ) in above program after echo $i

<?php for ($i=0; $i<10; $i++) { if ($i%2==0) { continue; } echo $i . ' '; } ?>

10th Nov 2016, 4:36 PM
Vishal Dubey
Vishal Dubey - avatar
2 odpowiedzi
+ 1
It is just a space which separate printed numbers.
10th Nov 2016, 4:38 PM
Ondřej Doněk
Ondřej Doněk - avatar
+ 1
You can use from . to sum strings or variables with themselves. So when you sum anything with ' ' , the result is one separate after or before your output text.
10th Dec 2016, 10:36 PM
Reza Javadpour
Reza Javadpour - avatar