Home >
Article > Backend Development > PHP function to replace internal links in articles PHP keyword replacement (including the function of shielding and restoring original links)
PHP function to replace internal links in articles PHP keyword replacement (including the function of shielding and restoring original links)
WBOYOriginal
2016-07-25 08:57:391411browse
/*
* PHP替换文章内链
* by bbs.it-home.org
*/
function _base64_encode($t,$str) {
return $t.""".base64_encode($str).""";
}
function _base64_decode($t,$str) {
return $t.""".base64_decode($str).""";
}
function _keylinks($txt, $replacenum = '',$link_mode = 1) {
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn