我已經看到了這對被wordpress的完成,我沒有訪問Word新聞:)SEO友情鏈接,JS和/或php剝離
,但我需要返回一個URL字符串去除任何非有效的字符它並將一些字符轉換爲適當的字符:)
eg
1+ characters should be converted (of the following)
[space] = [dash] (1 dash) >>> (-)
[underscore] = [dash] (1 dash) >>> (-)
$str = 'Hello WORLD this is a bad string';
$str = convert_str_to_url($str);
//output//NOTE: caps have are lowercase :)
//hello-world-bad-string
,並刪除常見的和毫無意義的詞語,如「在」 etccc「中」,「一」,
至少指向我的方向是正確的,如果ü天璣有GD代碼:)
+1「猛擊鏈接」當我讀它提醒我什麼即時尋找笑:) – Val 2011-01-21 13:15:37