I'm trying to parse through a html document and store the urls in an array with php. If for example the source code of the document is:
Blah blah blah <a href="http://google.com">link</a> blab
<a href="http://yahoo.com">more links</a> ababasadsf
How do I find and grab the href attribute of the links and store each as an array element?