将特殊字符和空格转换成-
摘要:
$str =preg_replace("/[^".chr(0xa1)."-".chr(0xff)."a-zA-Z0-9]+/","-", strtolower($cate['DISP_NAME']));//只匹配中英文数字 阅读全文
posted @ 2012-04-24 11:56 北极宫爵 阅读(187) 评论(0) 推荐(0)
posted @ 2012-04-24 11:56 北极宫爵 阅读(187) 评论(0) 推荐(0)
posted @ 2012-03-30 10:59 北极宫爵 阅读(468) 评论(0) 推荐(0)
posted @ 2012-03-29 15:00 北极宫爵 阅读(235) 评论(0) 推荐(0)
posted @ 2012-03-29 14:58 北极宫爵 阅读(478) 评论(0) 推荐(1)