This forum is now read-only. Please use our new forums at

While Loops in PHP Forum

View Course » View Exercise

494 points
Submitted by
Motti Tadmor
over 4 years ago

Loop never comes back?

Not sure what is wrong in my code, I do have the false statement to end the loop, but it seems that the loop never finishes (when I press the submit button, result is never returned...) can someone help?

<!DOCTYPE html>

A loop of your own

$myAge = 50;
while ($myAge < 40) :
echo "You are young";
$myAge = false;
echo "Too Old...";

1 vote


@Motti, I run you and there's no error in it. Try refreshing your page.
I hope you already figured out how to solve it. =)

386 points
Submitted by
Rein Sano
over 4 years ago