Zend - The PHP Company




Code Gallery: kgourlay


Anchor Extractor  

Type: code fragment
Added by: kgourlay
Entered: 12/07/2000
Last modified: 08/12/1999
Rating: ***** (4 votes)
Views: 7579
Give it a string containing HTML code and it'll extract all the anchors (links) from it. It'll set up an array of the URLs (as they appear in the code) and another array of the related "hilighted" text. This isn't perfect, but I figured I'd toss it up since I was looking for it earlier today.




Search