除外する必要があります
imgからのタグ
<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>
テキスト、つまりMattCarledgeのみを取得します。php simple html domパーサーを使用することは可能ですか?ありがとう。
$first_anchor = $list->find('a',0);
$prof_img = $first_anchor->find('img',0)->src;
echo $prof_name = $first_anchor->innertext;die();
prof_nameを「MattCartledge」にする必要があります。