fork download
  1. <?php
  2.  
  3. $arr = Array("111,5", "81","90,8","79,6","6");
  4.  
  5. $arrNumeros = array_map(function($el){
  6. return floatval(str_replace(',', '.', $el));
  7. }, $arr);
  8.  
  9. echo min($arrNumeros); // 6
Success #stdin #stdout 0.01s 23632KB
stdin
Standard input is empty
stdout
6