fork(1) download
  1. <?php
  2. $mystring = "abcdefg1234";
  3. echo $m[preg_match('/(\d+)$/', $mystring, $m)];
  4. // your code goes here
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
1234