收集整理的非常有用的PHP函数

PHP替换标签字符

function stringParser($string,$replacer){
    $result = str_replace(array_keys($replacer), array_values($replacer),$string);
    return $result;
}

替换字符串标签:

The anchor text is the actual word or words used
to describe the link
itself