fork download
  1. <?php
  2.  
  3. $frutas = array('Maça', 'Banana', 'Perâ', 'Morango');
  4.  
  5. $funcao = create_function('$fruta', 'echo $fruta . "\n";');
  6.  
  7. array_map($funcao, $frutas);
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
Maça
Banana
Perâ
Morango