fork download
  1. <?php
  2. $R= "Antonio";
  3. $vocales = ['a', 'e', 'o'];
  4.  
  5.  
  6. for($i = 0; $i < count($vocales); $i++) {
  7. echo 'El nombre tiene ' . $vocales[$i] . ' aparece ' . substr_count($texto, $vocales[$i]) . ' veces. ';
  8. }
  9. ?>
Success #stdin #stdout #stderr 0.03s 26304KB
stdin
Standard input is empty
stdout
El nombre tiene a aparece 0 veces.  El nombre tiene e aparece 0 veces.  El nombre tiene o aparece 0 veces.  
stderr
PHP Notice:  Undefined variable: texto in /home/wu8k4j/prog.php on line 7
PHP Notice:  Undefined variable: texto in /home/wu8k4j/prog.php on line 7
PHP Notice:  Undefined variable: texto in /home/wu8k4j/prog.php on line 7