Home » PHP Number Triangle Program

PHP Number Triangle Program

by Online Tutorials Library

Number Triangle

Number triangle in PHP can be printed using for and foreach loop. There are a lot of patterns in number triangle. Some of them are show here.

Pattern1

Output:

PHP Number triangle 1

Pattern 2

Output:

PHP Number triangle 2

Pattern 3

Output:

PHP Number triangle 3

Pattern 4

Output:

PHP Number triangle 4

Pattern 5

Output:

PHP Number triangle 5

Pattern 6

Output:

PHP Number triangle 6

Pattern 7

Output:

PHP Number triangle 7

Pattern 8

Output:

PHP Number triangle 8

Next TopicStar Triangle

You may also like