【发布时间】:2011-05-25 15:27:59
【问题描述】:
这有可能吗……
假设我有一些带有“点击”类链接的文本:
<p>I am some text, i am some text, i am some text, i am some text
<a class="click" href="http://www.google.com">I am a link</a>
i am some text, i am some text, i am some text, i am some text</p>
使用PHP,获取类名的链接,'点击',然后获取href值?
【问题讨论】:
-
所有你需要的都在这里:stackoverflow.com/questions/3577641/best-methods-to-parse-html/… phpQuery 应该很容易做你需要的事情
标签: php hyperlink extract href