fer0an Posted July 31, 2010 Share Posted July 31, 2010 hello I want find the URL link in my data. so I find this link using code below: $dllink = $finddl; $dllink = textbetween ('<a href=','</a>',$dllink); $dllink = textbetween ('"','"',$dllink); but sometime my code have 2 or 3 URL . how I can find another URL in my code? Link to comment https://forums.phpfreaks.com/topic/209422-if-then/ Share on other sites More sharing options...
sasa Posted July 31, 2010 Share Posted July 31, 2010 try preg_match_all('/<a href="([^"]+)"/', $finddl, $dllink); print_r($dllink[1]); not tested Link to comment https://forums.phpfreaks.com/topic/209422-if-then/#findComment-1093648 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.