Where is the mistak here for ($x=0, $x <10, $x++) { echo $x; }; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Where is the mistak here for ($x=0, $x <10, $x++) { echo $x; };

Php code

7th Mar 2017, 11:52 AM
DAHMANI MOHAMED ELAMINE
DAHMANI MOHAMED ELAMINE - avatar
4 Answers
+ 4
change the commas with semicolons
7th Mar 2017, 12:07 PM
Meher Jebali
Meher Jebali - avatar
+ 2
Commas should be semicolons :)
7th Mar 2017, 11:53 AM
Geoffrey L
Geoffrey L - avatar
+ 2
for($x=0;$x<10;$x++)
7th Mar 2017, 11:54 AM
Meharban Singh
Meharban Singh - avatar
0
is there upvote ?
7th Mar 2017, 12:10 PM
DAHMANI MOHAMED ELAMINE
DAHMANI MOHAMED ELAMINE - avatar