How to get all urls from page (php)
<p>I have a page with urls with descriptions listed one under another (something like bookmarks/list of sites). How do I use php to get all urls from that page and write them to txt file (one per line, only url without description)?</p>

<p>Page looks like this:</p>

<p><a href="http://link.com" rel="nofollow">Some description</a></p>

<p><a href="http://link2.com" rel="nofollow">Other description</a></p>

<p><a href="http://link3.com" rel="nofollow">Another one</a></p>

<p>And I would like script's txt output to look like this:</p>

<p><a href="http://link.com" rel="nofollow">http://link.com</a></p>

<p><a href="http://link2.com" rel="nofollow">http://link2.com</a></p>

<p><a href="http://link3.com" rel="nofollow">http://link3.com</a></p>
