Re: Get text between <a href=""> </a>
| From: | Henrik Hansen | Date: | Mon, 05 Mar 2001 22:23:31 +0000 |
| Subject: | Re: Get text between <a href=""> </a> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42679@lists.php.net to get a copy of this message | ||
> I need some help with a program, I need to get every
> instance of text between <a href =""> GET TEXT HERE
> </a> and save the results in a variable. Does anyone
> have some example code of how to do it along with how
> to put the results into just one variable?
Try with:
$string = "<a href =\"\">GET TEXT HERE</a>";
$string = strip_tags($string);
--
Henrik Hansen