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