|
|
1
3
第一个答案 this SO thread 包含执行此操作所需的代码。 |
|
|
2
2
那么:
|
|
|
3
1
不久前,我为一个正在进行的项目编写了这个函数,但无法让RegEx工作。这不是最好的方法,但很管用。
|
|
|
4
0
这里有一个函数来帮助你做什么,它是用 捷克的: http://php.vrana.cz/vytvoreni-pratelskeho-url.php ( and translated to English ) 这是另一种说法( from the Symfony documentation ):
|