Profile
Achievement
![first submission:submitting first snipplet first submission:submitting first snipplet](/img/badge/badge_2.png?v3)
gdvickery's Recent SnippetsTagged file
- All /
« Prev 1 Next »
These 4 lines of code can be used to extract and return all links from any page using regex patterns. If links are found, an array is returned, else boolean false is returned.
4
1164
posted 15 years ago by gdvickery
This method is a bit faster and more reliable then using the "explode" method. Works with PHP 4.0.3 and up.
4
826
posted 15 years ago by gdvickery