Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

while loop

<?php
	$num=1;
	while($num<=5)
	{
		echo"The number is ".$num."<br>";
		$num++;
	}
	
//======output=====
/*
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5
*/
?>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
1+1 =