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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.