Published in: PHP
function get_clean_url_string($str) { '/\s+/i', '/(-|_)(-|_)*/', '/[^a-z0-9_-]/i' ); '-', '$1', '' ); }
You need to login to post a comment.
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.
section31 on 09/16/08
3 people have marked this snippet as a favorite
jdstraughan
luman
ithinksometimes
Published in: PHP
function get_clean_url_string($str) { '/\s+/i', '/(-|_)(-|_)*/', '/[^a-z0-9_-]/i' ); '-', '$1', '' ); }
You need to login to post a comment.