advanced code snippet search
mscribellito on 12/07/10
12/07/10 04:10am
function slug($str, $sep = '-') { $str = trim(strtolower($str)); $str = preg_replace('/[^a-z0-9\s+]/', '', $str); $str = preg_replace('/\s+/', $sep, $str); return $str;}
Report this snippet Tweet
Comment:
You need to login to post a comment.