While loop syntax First child error other answers not helping! please help


#1


2 While Loop Syntax


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

never mind I figured out i forgot the period in the string


#2

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