PHP Number Patterns Program

You are Here:

PHP Number Patterns Program

Note: Keep the following tips while trying number patterns using PHP.

  • Use <br> tag to insert new line.
  • Use HTML Entity &nbsp; to insert multiple spaces in a document because, in HTML, multiple whitespace characters are collapsed into one space.
Number Pattern 1
12345
1234
123
12
1
Number Pattern 2
12345
2345
345
45
5
Number Pattern 3
54321
4321
321
21
1
Number Pattern 4
54321
5432
543
54
5
Number Pattern 5
1
12
123
1234
12345
Number Pattern 6
5
45
345
2345
12345
Number Pattern 7
1
21
321
4321
54321
Number Pattern 8
5
54
543
5432
54321
Number Pattern 9
1
22
333
4444
55555
Number Pattern 10
5
44
333
2222
11111
Number Pattern 11
55555
4444
333
22
1
Number Pattern 12
11111
2222
333
44
5`
Number Pattern 13
12345
4321
123
21
1
Number Pattern 14
1234567
12345
123
1
Number Pattern 15
1
01
101
0101
10101
Number Pattern 16
1
10
101
1010
10101
Number Pattern 17
13579
3579
579
79
9
Number Pattern 18
1 
2 4 
1 3 5 
2 4 6 8 
1 3 5 7 9
Number Pattern 19
5 5 5 5 5 
4 5 5 5 5 
3 4 5 5 5 
2 3 4 5 5 
1 2 3 4 5
Number Pattern 20
1 
2 3 
4 5 6 
7 8 9 10
Number Pattern 21
1 
2 6 
3 7 10 
4 8 11 13 
5 9 12 14 15
Number Pattern 22
1
123
12345
1234567
123456789
Number Pattern 23
1234554321
1234**4321
123****321
12******21
1********1
Number Pattern 24
    1  
  2 3 4  
5 6 7 8 9 
Number Pattern 25
11111
2222
333
22
1
Number Pattern 26
5432*
543*1
54*21
5*321
*4321
Number Pattern 27
1
121
12321
1234321
123454321
Number Pattern 28
0
909
89098
7890987
678909876
56789098765
4567890987654
345678909876543
23456789098765432
1234567890987654321
Number Pattern 29
1        1
12      21
123    321
1234  4321
1234554321
Number Pattern 30
    1
   21
  321
 4321
54321
Number Pattern 31
1
2*2
3*3*3
4*4*4*4
5*5*5*5*5
4*4*4*4
3*3*3
2*2
1
Number Pattern 32
11 
12 13 
13 14 15 
14 15 16 17 
15 16 17 18 19
Number Pattern 33
1 
2 3 
3 4 5 
4 5 6 7 
5 6 7 8 9
Number Pattern 34
0 
1 2 
2 3 4 
3 4 5 6 
4 5 6 7 8 
5 6 7 8 9 10
Number Pattern 35
            1
         2  3
      4  5  6
   7  8  9  10
11 12 13 14 15
Number Pattern 36
        5 
      5 4 
    5 4 3 
  5 4 3 2 
5 4 3 2 1
Number Pattern 37
1
212
32123
4321234
543212345
Number Pattern 38
1  2  3  4  5
6  7  8  9
10 11 12
13 14
15
Number Pattern 39
12345
23451
34521
45321
54321
Number Pattern 40
11111
0000
111
00
1
Number Pattern 41
                1
            4   9   16
        25  36  49  64  81
    100 121 144 169 196 225 256
289 324 361 400 441 484 529 576 625
Number Pattern 42
1 1 1 1 1 
1       1 
1       1 
1       1 
1 1 1 1 1
Number Pattern 43
    1  
   1 2  
  1 2 3  
 1 2 3 4  
1 2 3 4 5
Number Pattern 44
    1
   123
  12345
 1234567
123456789
 1234567
  12345
   123
    1
Number Pattern 45
*000*000*
0*00*00*0
00*0*0*00
000***000
Number Pattern 46
5 5 5 5 5 5 5 5 5 
5 4 4 4 4 4 4 4 5 
5 4 3 3 3 3 3 4 5 
5 4 3 2 2 2 3 4 5 
5 4 3 2 1 2 3 4 5
Number Pattern 47
5 5 5 5 5 5 5 5 5 
5 4 4 4 4 4 4 4 5 
5 4 3 3 3 3 3 4 5 
5 4 3 2 2 2 3 4 5 
5 4 3 2 1 2 3 4 5 
5 4 3 2 2 2 3 4 5 
5 4 3 3 3 3 3 4 5 
5 4 4 4 4 4 4 4 5 
5 5 5 5 5 5 5 5 5
Number Pattern 48
1
11
121
1331
14641
Number Pattern 49
1
2  4
3  6  9
4  8  12 16
5  10 15 20 25
6  12 18 24 30 36
7  14 21 28 35 42 49
8  16 24 32 40 48 56 64
9  18 27 36 45 54 63 72 81
10 20 30 40 50 60 70 80 90 100
Number Pattern 50
12345
21234
32123
43212
54321
Number Pattern 51
1
3  2
4  5  6
10 9  8  7
11 12 13 14 15
Number Pattern 52
1
232
34543
4567654
567898765
Number Pattern 53
1       1
 2     2  
  3   3    
   4 4      
    5 
Number Pattern 54
1       1
 2     2  
  3   3    
   4 4      
    5        
   4 4      
  3   3    
 2     2  
1       1
Number Pattern 55
1 
2 6 
3 7 10 
4 8 11 13 
5 9 12 14 15
Number Pattern 56
        1 
      1 2 1 
    1 2 3 2 1 
  1 2 3 4 3 2 1 
1 2 3 4 5 4 3 2 1
Number Pattern 57
    1        
   2 2      
  3   3    
 4     4  
5       5
Number Pattern 58
    1        
   2 2      
  3   3    
 4     4  
5       5
 4     4  
  3   3    
   2 2      
    1
Number Pattern 59
1  2  3  4  5
16          6
15          7
14          8
13 12 11 10 9
Number Pattern 60
86523
8652
865
86
8
Number Pattern 61
3
32
325
3256
32568
Number Pattern 62
1   2   3   4   5   6   7   8   9  10
36  37  38  39  40  41  42  43  44  11
35  64  65  66  67  68  69  70  45  12
34  63  84  85  86  87  88  71  46  13
33  62  83  96  97  98  89  72  47  14
32  61  82  95  100 99  90  73  48  15
31  60  81  94  93  92  91  74  49  16
30  59  80  79  78  77  76  75  50  17
29  58  57  56  55  54  53  52  51  18
28  27  26  25  24  23  22  21  20  19

Reminder

Hi Developers, we almost covered 90% of String functions and Interview Question on PHP with examples for quick and easy learning.

We are working to cover every Single Concept in PHP.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author