/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function get_clean_url_string($str) { '/\s+/i', '/(-|_)(-|_)*/', '/[^a-z0-9_-]/i' ); '-', '$1', '' ); }