Adjust Php Code Retrieve The Dom From A Given Url
Hello , im using the following code to Retrieve the DOM from URL all 'A' tags and print their HREFs Now my output is contain 'A' i dont want its my out is here http://trend.rem
Solution 1:
Instead of simply using $urls[] = $e->href
, use a regex to match the username:
preg_match('~twitter.com/(.+)~', $e->href, $matches);
$urls[] = $matches[1];
Post a Comment for "Adjust Php Code Retrieve The Dom From A Given Url"