摘要: 去除内容多余样式php函数-文章来源 植物号 www.zhiwuhao.com function KillStyle($content) { $content = preg_replace("/STYLE=.+?['|\"]/i",'',$content);//去除样式 $content = pre 阅读全文
posted @ 2023-07-05 15:57 八路逆袭寡妇村 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 需要在api/extend.func.php 文件中加入的函数 function time_tran($the_time) { $now_time = time(); $show_time = strtotime($the_time); $dur = $now_time - $show_time; 阅读全文
posted @ 2023-07-05 15:53 八路逆袭寡妇村 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 今天应一个朋友请求,要求写个5118的伪原创插件,他的接口输出的默认是json形式输出,很不方便,要提取里面伪原创的结果,并附上代码。 <?php $host = "http://apis.5118.com"; $path = "/wyc/rewrite"; $method = "POST"; $a 阅读全文
posted @ 2023-07-05 15:51 八路逆袭寡妇村 阅读(56) 评论(0) 推荐(0) 编辑
www.shiciyue.com