While Loops in PHP


#1

Hello! I have a question about this topic. I have done EVERYTHING RIGHT except it says that it is wrong. Please help! This is a screenshot:

Thanks for your help! This is the error message I have been getting:

"Oops, try again. expected p:first-child text to be equal to The loop is running. but got "
How can I fix this error? Please leave a comment below!


#2

Your error message mentions a missing semi-colon


#3

I get this error:

Oops, try again. expected p:first-child text to be equal to The loop is running. but got The loop is running


#4

at line 13,you try to remove ";"


#5

Same here, did you got it to work ?


#6

Did you get this to work? I noticed that there wasn't a ; after your echo statement and a ; after the last curly brace. This is my while look which worked for me.

$coffee = true;
while($coffee == true) {
echo "

I like my coffee this way

";
$coffee = false;
}

#7

I also made this fault, in line eleven, you need a semicolon, like this:
echo "

The loop is running

;
I hope that this will help.