<form method="post"> <input type="text" name="cuvant" id="cuvant"> </form> <?php function getvocals($string) { $vocale=array("a","e","i","o","u"); $nr=0; for($i=0;$i<strlen($string);++$i) if(in_array(strtolower($string[$i]),$vocale)) ++$nr; return $nr; } $cuvant = $_POST['cuvant']; getvocals($cuvant); ?> functia este creata de 50cent