Jump to content

grab all links with certain attribute


ohdang888

Recommended Posts

I'm stuck on this problem:

 

I got an html markup of a page through cUrl, but now i want to get the innerText of links in that markup with "rel" attribute of "tag"

example: things like this:

<a href="blah blah" rel="tag">Tag Name 1</a>

<a href="blah blah" rel="tag">Tag Name 2</a>

 

i'm assuming its preg_match... but i'm realllyyyy bad with that function

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/202418-grab-all-links-with-certain-attribute/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.