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.03s 25860KB
stdin
1235.00110
stdout
21250000.022
20
200
20.5