<div class="codetitle"> <span><a style="CURSOR: pointer" data="83396" class="copybut" id="copybut83396" onclick="doCopy('code83396')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code83396"> <br>function getSeoVersion($phrase) { <br>return preg_replace('/[^a-z0-9_-]/i', '', strtolower(str_replace(' ', '-', trim($phrase)))); <br>} <br><br>// example usage: <br>echo getSeoVersion("German cars are amazing.");<br> </div>