<?
$input = '<code><div class="show invoice invoice_number_rajhi"><a href="/fatora/alrajhi/invoices/3687908533/people" class="link-blue" onclick="$.fn.colorbox({title:"People who visit this",onComplete:show.onPeopleOpening,onCleanup:show.onPeopleClosing,href:"/fatora/alrajhi/invoices/3687908533/people"}); return false">789621 paid</a> show this</div></code>';
preg_match_all("#(\d*)[ a-z]*?</a>#i",$input,$out);
echo $out[1][0];
?>
You can replace the value of $input
with file_get_contents("URL HERE")
;