Write a php program to print Vowel or consonant using switch case

Write a php program to print Vowel or consonant using switch case. This program will check the letter is vowel or consonant in PHP. This will check and whether the letter is vowel like a,e,i,o,u or consonant like rest of lettersĀ 

<?php 
$ch = 'D';
switch ($ch)
{
case 'a':
echo "it is vowel";
break;
case 'e':
echo "it is vowel";
break;
case 'i':
echo "itis vowel";
break;
case 'o':
echo "it is vowel";
break;
case 'u':
echo "it is vowel";
break;
case 'A':
echo "it is vowel";
break;
case 'E':
echo "it is vowel";
break;
case 'I':
echo "it is vowel";
break;
case 'O':
echo "it is vowel";
break;
case 'U':
echo "it is vowel";
break;
default:
echo "it is consonant";
break;
}
?>

Output:

It is consonant