Profile
Achievement
gdvickery's Recent PHP Snippets
- 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
2692
posted 17 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
2199
posted 17 years ago by gdvickery