如何用mysql中的Flex / PHP保存带有一些链接词的文本?

I have a CMS where i can insert texts with direct links to my favorite sites, to be viewed in the FrontPage, but i just want to show the name of them (bold or colored) and not the URL. How can i do it!? I´m using a DB with some other info and works great, but I'm not achieving this part. any solution!? Thanks in advance..

Try this.

<?php
function getTextBetweenTags($string, $tagname) {
    $pattern = "/<$tagname ?.*>(.*)<\/$tagname>/";
    preg_match($pattern, $string, $matches);    
    return $matches[0];
}

$str = '<a href="google.pt" target="_blank"><span style="text-decoration: underline;">Some</span></a>';
$txt = getTextBetweenTags($str, "a");
echo $txt;
?>