0

php related question

I don't know what output results from the following code. I do not know what, and most importantly why. Please, help me. $x = 0; while($x<=7) { $x++; } echo $x;

29th Dec 2019, 6:11 PM
Jacob
3 Respuestas
+ 1
"I don't know what output results from the following code." You can test run the code in Code Playground to find out about code output "I do not know what, and most importantly why." I would suggest you to review the lesson about loops, the while-loop in particular. If you have reviewed the loop chapter and still not understanding it, come back here and explain which part of it is troubling you. Me or someone else will try to assist by then. But try to review the lesson first, for now 👍
29th Dec 2019, 7:02 PM
Ipang
+ 1
Thank you, Ipang. I didn't guess to use the Code Playground. It helped.
29th Dec 2019, 7:24 PM
Jacob
0
I'm glad to hear that Jacob 👍
29th Dec 2019, 8:08 PM
Ipang