Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function url_clean($str){
- $str = iconv('utf-8', 'us-ascii//TRANSLIT', $str);
- $clean_str = preg_replace(array('/\'|\"/','/ /'),array('','-'),$str);
- return $clean_str;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement