您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

哪位高手有将页面所有连接全部生产伪静态function方法

2024/4/11 21:34:33发布20次查看
谁有将页面所有连接全部生产伪静态function方法?
如果将页面中index.php?c=index&m=lists&id=1这样连接方式全部通过php正则替换成 index-lists-1.html的function方法?请高手提供个方法使用下
------解决思路----------------------
echo foo('index.php?c=index&m=lists&id=1');
function foo($url) {
$t = parse_url($url);
parse_str($t['query'], $r);
return $r[c]-$r[m]-$r[id].html;
}

index-lists-1.html
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product