fork(7) download
  1. <?php
  2.  
  3. $strs = ['0C', '-1C', '-2C', '20C', '30C', -'50C'];
  4. foreach($strs AS $str){
  5. echo intval($str).PHP_EOL;
  6. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
0
-1
-2
20
30
-50