How to print a to z using PHP?

Using foreach loop in PHP, we can print a to z.

Print a to z using PHP

<?php
foreach(range('a','z') as $char){
echo $char;
}
?>
 Output
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
How to print a to z using PHP? How to print a to z using PHP? Reviewed by Pixel Stream on December 10, 2019 Rating: 5

No comments:

Powered by Blogger.