Ask your Question

PEOPLE YOU MIGHT KNOW

Pooja
Pooja

Chiplun,  India
Everest Educational
Everest Educational

Visa Consultants in Punjab

Ludhiana,  India
Vikas
Vikas

Web developer

Gurgaon,  India
Space
Space

Courier Services

Birmingham,  United Kingdom
MobileComm
MobileComm

MobileComm Professionals Inc.

Richardson,  United States

Write to us

Ask Question

created-program-for-vowel-counting-in-a word

Fazal Ahmed

i created a program for vowel counting in a word but it causing an error which was undefined offset

$v=array('a','e','i','o','u');
$a=array('w','e','l','c','o','m','e');
$f=0;
for($c=0;$c<=7;$c++){
             for($b=0;$c<=5;$b++){
                       if(($a[$c]==$v[$b])){
                                $f++;
                                }
        
                      }
            
    
             }
    echo $f;        
?> 

Fazal Ahmed

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site