tp3.2 实现对搜索关键字标红

function keyreplace(data){keywords = I(‘get.search’,”,’htmlspecialchars’);
if(keywords!=”){str = str_replace($keywords,””. keywords."</span>", data);
echo str;  
    }else{  
        echo
data;
}
}

你可能感兴趣的:(开发)