Jump to content

[SOLVED] Link grabber


Thomisback

Recommended Posts

Hi,

 

I'm trying to grab the values of some links, the problem is that it only gives me the first link. I want all the links.

 

The code

if (preg_match('%<br><br></TD><TD width="120" align="center" valign="top"><A href="(.*?)">%', $data, $regs)) {
$type = $regs[1];
} else {
$type = "";
}

 

I already tried a foreach statement but still only returns 1 value.

 

Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/108233-solved-link-grabber/
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.