62
Star Triangle
The star triangle in PHP is made using for and foreach loop. There are a lot of star patterns. We’ll show some of them here.
Pattern 1
Output:
Pattern 2
Output:
Pattern 3
Output:
Pattern 4
Output:
Pattern 5
Output:
Pattern 6
Output:
Next Topic#