fork(1) download
  1. <?php
  2. $string = "1427 0
  3.  
  4. 876652098643267843
  5. 5276538";
  6.  
  7. echo $string . "\n------------------------------------\n";
  8.  
  9. $trash = explode(" ", $string);
  10.  
  11. foreach ($trash as $value) {
  12. //echo "$value \n";
  13. if (is_numeric($value)) {
  14. $result = round(sqrt($value), 4);
  15. echo $result . "\n";
  16. }
  17. }
  18.  
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
1427  0   

   876652098643267843 
5276538
------------------------------------
37.7757
0
936297014.1164
2297.0716