fork download
  1. <?php
  2. $path = parse_url('http://m...content-available-to-author-only...n.com/alrajhi/invoice/108678645541', PHP_URL_PATH);
  3.  
  4. list(, $name, , $number) = explode('/', $path);
  5.  
  6. echo $name, PHP_EOL, $number;
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
alrajhi
108678645541