fork(12) download
  1. <?php
  2.  
  3. $link = '13542345/essa_e_minhastring';
  4. $pattern = '/[^\/]+/';
  5. preg_match($pattern, $link, $partes, PREG_OFFSET_CAPTURE);
  6. echo $partes[0][0]; // dá 13542345
Success #stdin #stdout 0.02s 52480KB
stdin
Standard input is empty
stdout
13542345