note 7651 added to strip_tags

From: Date: Thu, 10 Aug 2000 07:21:56 +0000
Subject: note 7651 added to strip_tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-765@lists.php.net to get a copy of this message
Is there a way to grab the "href" from a link on a webpage? When I use the 'file' function to grab the web page, I can strip all the html except for the <a> tags - to produce the link, but it seems that I can only grab the link itself or the link text. I need to know what the actual link source is. example: the html source: <A HREF="/mydomian.domain/cgi-bin/page.htm">The Link</A> I can either grab the text: The Link or the actual link of: The Link I want: /mydomain.domain/cgi-bin/page.htm Can anyone help me out here? http://www.php.net/manual/function.strip-tags.php

« previous php.notes (#765) next »