-2
$nome = "Johnny Henrique da Silva";
$vogais = array('A','E','I','O','U');
$subCarVogais = array('a' => '1','e' => '5','i' => '1','o' => '7','u' => '6');
function funSomaVetor($v) {
for ($i=0; $i < sizeof($v); $i++) {
$soma = $soma + $v[$i]; } return $soma;
}
$resultado = funSomaVetor($subCarVogais); echo "Resultado $resultado";
Ever tried to make a
if
? And what would be the variable$result
that is not defined? And why did you make aprint
in the middle of<select>
?– Woss