How to Print Start Pattern in PHP - Phptpoint

Print star pattern in PHP

/ins>

Print Pattern in PHP

Pattern 1

Output
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

Pattern 2

Output
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5

Pattern 3

Output
*
* *
* * *
* * * *
* * * * *

Pattern 4

Output
     *
    * *
   * * *
  * * * *
 * * * * *

Pattern 5

Output
 * * * * *
* * * *
* * *
* *
*

Pattern 6

Output

Pattern 7

Output

Pattern 8

Output