Write a Program to Find Vowel Checking a String Using Php
$str = "Ahirlabs"; $vowelArrray = array('A', 'E', 'I', 'O', 'U', 'a', 'e', 'i', 'o', 'u'); $arry = str_split($str); $count = count($arry); echo "<p>".$str."</p>"; for ($i = 0; $i < $count; $i++) { if (in_array($arry[$i], $vowelArrray)) { echo "<p>Vowel {$arry[$i]} is Found </p>"; } }
Testing Code:
(Visited 474 times, 1 visits today)
Written by: