2. While Loop Syntax


It keeps saying that I haven't filled in my while loop properly when I try to save and submit. Can't see where I'm going wrong.

<!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>";


In your while , you wrote $loopcond instead of $loopCond