Friday 19 March 2021

Write a program to Find Vowel or Not Vowel in PHP

 

Write a program to Find Vowel or Not Vowel in PHP


<title>Write a program to Find Vowel or Not Vowel in PHP</title>

</head>

<body>

<?php

/* Write a program to get the one character from user and find out

this character is vowel or not.*/

 $x='a';

if($x=='a'|$x=='e'|$x=='i'|$x=='o'|$x=='u'|$x=='A'|$x=='E'|$x=='I'|$x=='O'|$x=='U')

 {

print"Vowel";

}

else

{

print"Not Vowel";

}

?>



No comments:

Post a Comment