$htm = "<a href='http://www.111cn.net'>test1</a><br />" .
"<a href='http://www.111cn.net'>test2</a><br />" .
"<a href='http://www.111cn.net'>test3</a><br />" .
"<a href='http://www.111cn.net'>test4</a><br />" .
"<a href='http://www.111cn.net'>test5</a><br />";
echo $htm . "<br />";
echo stripthetag($htm);
function stripthetag($link) {
return (preg_replace('@<[/!]*?[^<>]*?>@si', ' ', $link));
}