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

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;        
?> 

0   0
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