输入banner图图片脚本导航/分类

PHP日志缩略名的创建函数代码_PHP

代码如下:
function create_slug($string){
$slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string);
return $slug;
}