fork(2) download
  1. <?php
  2.  
  3. $ID = '3803_452.jpg';
  4. $partes = explode('_', $ID);
  5.  
  6. $id = $partes[0];
  7. $seq = $partes[1];
  8. $seq = substr($seq, 0, strpos($seq, '.'));
  9. echo $id; // 3803
  10. echo $seq; // 452.jpg
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
3803452