2. While loop syntax


Need help with this. Anyone. Pl help.

This is the error I'm receiving.
"Oops, try again. expected p:first-child text to be equal to The loop is running. but got The loop is running !"


<!DOCTYPE html>
		<title>Your First PHP while loop!</title>
	$loopCond = true;
	while ($loopCond == true){
		//Echo your message that the loop is running below
		echo "<p> The loop is running ! </p>";
		$loopCond = false;
	echo "<p>And now it's done.</p>";



Inside the curly braces, use echo to output "<p>The loop is running.</p>"

The string should be exact same even a single space.


Oh. ■■■■. Got that. Thanks.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.