Write a PHP function isLetter($ch) that takes a character as a parameter and returns true if the character is in the range of A-Z or a-z. You may not use the function ctype_alpha(). HINT: use the ord() function and test ranges.

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter13: Programming For Web Forms: Creatings Forms For Orders And Pa
Section13.2: Visual Overview: Passing Data Between Forms
Problem 3QC
icon
Related questions
Question

Write an isLetter Function

Write a PHP function isLetter($ch) that takes a character as a parameter and returns true if the character is in the range of A-Z or a-z. You may not use the function ctype_alpha(). HINT: use the ord() function and test ranges.

code.php
1 <?php
3 function isLetter($ch){
4
5 }
7 ?>
O7
Transcribed Image Text:code.php 1 <?php 3 function isLetter($ch){ 4 5 } 7 ?> O7
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning