For and foreach loop in PHP with break statement and creating patterns using nested for loops
We can print numbers from 1 to 10 by using for loop. You can easily extend this program to print any numbers from starting from any value and ending on any value.
for[ $i=1; $i