Parse error: syntax error, unexpected T_WHILE on line 9


#1







<?php
$loopCond=true
while($loopCond == true) {
echo "

The loop is running.

";
}
echo "

And now it's done.

";
?>


#2

@saptha_clans

You forgot to put a semicolon after declaring your $loopCond variable. Make sure also to not generate an infinite loop!

Set the value of $loopCond to false so it doesn't generate an infinite loop.


#3







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

<?php
$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>";
?>
</body>