fork download
  1. <?php
  2.  
  3. $arr = array('21250000.022000', '20.00', '200', '20.50');
  4.  
  5. foreach ($arr as $n)
  6. echo (double) $n. "\n";
  7.  
  8. ?>
Success #stdin #stdout 0.02s 25932KB
stdin
Standard input is empty
stdout
21250000.022
20
200
20.5