Convert the below if-elseif code to its equivalent switch case statement: $alphabet = ‘a’; if ($alphabet == ‘a’ || $alphabet == ‘e’ || $alphabet == ‘i’ || $alphabet == ‘o’ || $alphabet == ‘u’) { print...



  • Convert the below if-elseif code to its equivalent switch case statement:


$alphabet = ‘a’;


if ($alphabet == ‘a’ || $alphabet == ‘e’ || $alphabet == ‘i’ || $alphabet == ‘o’ ||


$alphabet == ‘u’)


{


       print 'Alphabet is a vowel';


}


else


{


      print 'Alphabet is a consonant';


}



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here