Home » PHP Star Triangle Program

PHP Star Triangle Program

by Online Tutorials Library

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#

You may also like