Javatpoint Logo
Javatpoint Logo

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:

PHP Star triangle 1

Pattern 2

Output:

PHP Star triangle 2

Pattern 3

Output:

PHP Star triangle 3

Pattern 4

Output:

PHP Star triangle 4

Pattern 5

Output:

PHP Star triangle 5

Pattern 6

Output:

PHP Star triangle 6
Next Topic#




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA