Hello ,
im using the following code to Retrieve the DOM from URL
ind all “A” tags and print their HREFs
Now my output is contain “A” i dont want its my out is here
http://trend.remal.com/parsing.php
some elements duplicated ,
i need to clear my out to be only “A” that include https://twitter.com/$namehere
as you can see i have 2 kind of urls i need only twitter url and avoid duplicate
any tips to adjust the code
<?php
include('simple_html_dom.php');
$html = file_get_html('http://tweepar.com/sa/1/');
foreach($html->find('a') as $e)
echo $e->href . '<br>';
?>
Here are some references from the PHP docs:
strposin_arrayimplode