<?php
$html = '<a href="https://w...content-available-to-author-only...e.com/user.asp?ref=fvFCF9D8N4Ak">';
$dom = new DOMDocument;
@$dom->loadHTML($html);
foreach ($dom->getElementsByTagName('a') as $tag) {
$href = $tag->getAttribute('href');
echo $queryString = parse_url($href, PHP_URL_QUERY
); }
}
PD9waHAKIAokaHRtbCA9ICc8YSBocmVmPSJodHRwczovL3cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLmUuY29tL3VzZXIuYXNwP3JlZj1mdkZDRjlEOE40QWsiPic7CiAKJGRvbSA9IG5ldyBET01Eb2N1bWVudDsKQCRkb20tPmxvYWRIVE1MKCRodG1sKTsKIApmb3JlYWNoICgkZG9tLT5nZXRFbGVtZW50c0J5VGFnTmFtZSgnYScpIGFzICR0YWcpIHsKIAoJJGhyZWYgPSAkdGFnLT5nZXRBdHRyaWJ1dGUoJ2hyZWYnKTsKIAoJaWYgKCFlbXB0eSgkaHJlZikpIHsKIAoJCWVjaG8gJHF1ZXJ5U3RyaW5nID0gcGFyc2VfdXJsKCRocmVmLCBQSFBfVVJMX1FVRVJZKTsKCX0KfQ==