17370845950

PHP 日志缩略名的创建函数代码
复制代码 代码如下:
function create_slug($string){
$slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string);
return $slug;
}