PHP Nested loop example

PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994, the PHP reference implementation is now produced by The PHP Group.

Screenshot:

PHP Nested loop example

Program:
<?php
for($i=0; $i<10; $i++)
{
for($y=0; $y<10; $y++)
{
echo "_/\_";
}
echo "<br>";
}
?>

 

Was this article helpful?

Thanks

Thanks for your Feeback. It will helps us to improve our Article quality




0 Shares