dreamwest Posted September 7, 2009 Share Posted September 7, 2009 Im trying to seperate a group of hyperlinks, but cant seem to do it <a target="_self" href="http://site.com/index.php?q=search">search</a> <a target="_self" href="http://site.com/index.php?q=search2">search2</a> <a target="_self" href="http://site.com/index.php?q=search3">search3</a> Basically i want to strip everything away except what between the hyperlink tags so it looks like this: search search2 search3 Link to comment https://forums.phpfreaks.com/topic/173394-strip-tags/ Share on other sites More sharing options...
thebadbad Posted September 7, 2009 Share Posted September 7, 2009 strip_tags() Link to comment https://forums.phpfreaks.com/topic/173394-strip-tags/#findComment-914056 Share on other sites More sharing options...
bundyxc Posted September 7, 2009 Share Posted September 7, 2009 <?php $oldString = ' <a target="_self" href="http://site.com/index.php?q=search">search</a> <a target="_self" href="http://site.com/index.php?q=search2">search2</a> <a target="_self" href="http://site.com/index.php?q=search3">search3</a> '; $newString = strip_tags($oldString); print($newString); ?> Link to comment https://forums.phpfreaks.com/topic/173394-strip-tags/#findComment-914077 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.