$x = 'A fox was <a href="/xyz/dancingwith">Dancing with</a> light. The night <a href="/xyz/treeare">tree are</a> growing.';
I want to become this
$x = 'A fox was <a href="/xyz/dancing-with">Dancing with</a> light. The night <a href="/xyz/tree-are">tree are</a> growing.';
我要全部更換PHP替代的URL的錨文本
<a href="xyz">x y z</a> to <a href="x-y-z">x y z</a>
或
<a href="xaybzc">xA yB zC</a> to <a href="xa-yb-zc">xA yB zC</a>
我想成爲這個
請幫助我。
你能告訴我們你試過的東西沒有用嗎? –