fork(7) download
  1. <?php
  2.  
  3. $html = '<a href="https://w...content-available-to-author-only...e.com/user.asp?ref=fvFCF9D8N4Ak">';
  4.  
  5. $dom = new DOMDocument;
  6. @$dom->loadHTML($html);
  7.  
  8. foreach ($dom->getElementsByTagName('a') as $tag) {
  9.  
  10. $href = $tag->getAttribute('href');
  11.  
  12. if (!empty($href)) {
  13.  
  14. echo $queryString = parse_url($href, PHP_URL_QUERY);
  15. }
  16. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
ref=fvFCF9D8N4Ak