I need to exclude a
imgtag from
<a href="http://www.facebook.com/xxxxxx">
<img style="float: left; margin-right: 10px;"
src="http://profile.ak.fbcdn.net/xxxxx/xxxxx.jpg">
Matt Cartledge
</a>
and get only the text i.e. Matt Carledge. Is it possitble using php simple html dom parser? Thnk you.
$first_anchor = $list->find('a',0);
$prof_img = $first_anchor->find('img',0)->src;
echo $prof_name = $first_anchor->innertext;die();
i need prof_name to be "Matt Cartledge".