Q:

Write a PHP script to print letters from 'a' to 'z'

0

Write a PHP script to print letters from 'a' to 'z'.

Pictorial Presentation:

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<?php
for ($x = ord('a'); $x <= ord('z'); $x++)
 echo chr($x);
 echo "\n"
?>

Sample Output:

abcdefghijklmnopqrstuvwxyz

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now