fork(1) download
  1. <?php
  2.  
  3. $s = '0.5An55.5Tik';
  4. if (preg_match('/^(\d*\.?\d+)(.*)/', $s, $m)) {
  5. echo $m[1] . "\n" . $m[2];
  6. }
Success #stdin #stdout 0.02s 23916KB
stdin
Standard input is empty
stdout
0.5
An55.5Tik