<?php $str = 'maría'; $count = count(preg_grep("/[áéíó]/", $str)); echo $count;
You have javascript disabled. You will not be able to edit any code.