Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- function stripTitle($str) {
- $str = strtolower(preg_replace(array('/\s/', '/Å/', '/Ä/', '/Ö/', '/å/', '/ä/', '/ö/'), array('-', 'a', 'a', 'o', 'a', 'a', 'o'), $str));
- $str = ereg_replace('[^a-z0-9-]', '', $str);
- return $str;
- }
- ?>
Add Comment
Please, Sign In to add comment