PHP Alphabet Patterns Program

You are Here:

PHP Alphabet Patterns Program

Note: Keep the following tips while trying alphabet 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.
Alphabet Pattern 1
A
AB
ABC
ABCD
ABCDE
Alphabet Pattern 2
E
ED
EDC
EDCB
EDCBA
Alphabet Pattern 3
E
DE
CDE
BCDE
ABCDE
Alphabet Pattern 4
A
BA
CBA
DCBA
EDCBA
Alphabet Pattern 5
ABCDE
ABCD
ABC
AB
A
Alphabet Pattern 6
ABCDE
BCDE
CDE
DE
E
Alphabet Pattern 7
EDCBA
DCBA
CBA
BA
A
Alphabet Pattern 8
EDCBA
EDCB
EDC
ED
E
Alphabet Pattern 9
A
BB
CCC
DDDD
EEEEE
Alphabet Pattern 10
E
DD
CCC
BBBB
AAAAA
Alphabet Pattern 11
EEEEE
DDDD
CCC
BB
A
Alphabet Pattern 12
AAAAA
BBBB
CCC
DD
E
Alphabet Pattern 13
A 
B C 
D E F 
G H I J 
K L M N O
Alphabet Pattern 14
A
ABC
ABCDE
ABCDEFG
ABCDEFGHI
Alphabet Pattern 15
ABCDEEDCBA
ABCD**DCBA
ABC****CBA
AB******BA
A********A
Alphabet Pattern 16
    A  
  B C D  
E F G H I
Alphabet Pattern 17
EDCB*
EDC*A
ED*BA
E*CBA
*DCBA
Alphabet Pattern 18
A
ABA
ABCBA
ABCDCBA
ABCDEDCBA
Alphabet Pattern 19
A        A
AB      BA
ABC    CBA
ABCD  DCBA
ABCDEEDCBA
Alphabet Pattern 20
    A
   BA
  CBA
 DCBA
EDCBA
Alphabet Pattern 21
A
B*B
C*C*C
D*D*D*D
E*E*E*E*E
D*D*D*D
C*C*C
B*B
A
Alphabet Pattern 22
        A
      B C
    D E F
  G H I J
K L M N O
Alphabet Pattern 23
        E
      E D
    E D C
  E D C B
E D C B A
Alphabet Pattern 24
A
BAB
CBABC
DCBABCD
EDCBABCDE
Alphabet Pattern 25
A B C D E
F G H I
J K L
M N
O
Alphabet Pattern 26
ABCDE
BCDEA
CDEBA
DECBA
EDCBA
Alphabet Pattern 27
    A
   A B
  A B C
 A B C D
A B C D E
Alphabet Pattern 28
E E E E E E E E E
E D D D D D D D E
E D C C C C C D E
E D C B B B C D E
E D C B A B C D E
Alphabet Pattern 29
E E E E E E E E E
E D D D D D D D E
E D C C C C C D E
E D C B B B C D E
E D C B A B C D E
E D C B B B C D E
E D C C C C C D E
E D D D D D D D E
E E E E E E E E E
Alphabet Pattern 30
ABCDE
BABCD
CBABC
DCBAB
EDCBA
Alphabet Pattern 31
A       A
 B     B  
  C   C    
   D D      
    E
Alphabet Pattern 32
    A
   ABA
  ABCBA
 ABCDCBA
ABCDEDCBA
Alphabet Pattern 33
    A
   B B
  C   C
 D     D
E       E
Alphabet Pattern 34
    A
   B B
  C   C
 D     D
E       E
 D     D
  C   C
   B B
    A

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