phptutorials

PHP program to Check Vowel or Consonant

In this example, we are going to see how to write a simple PHP program to check if the entered alphabet is a Vowel or a Consonant.

I hope you know the Vowels in English, if you don’t, these are the Vowels in English (A, E, I, O, U). Other letters are Consonants.

Here is the complete PHP program with inline comments,

It’s a very simple program, so please go through the above lines of code to understand it.

You can also see the demo of this program by clicking the below link:

demo

Related Posts

Leave a Reply