请问我如何删除生成seo别名的副本...我喜欢" wabi - dablovo-stado --- pribehy-pisni"我需要删除重复字符串" wabi-dablovo-stado-pribehy-pisni"只有简单的" - "
谢谢
答案 0 :(得分:0)
这应该适合你:
<?php
echo preg_replace("/(.)\\1+/", "$1", "wabi--dablovo-stado---pribehy-pisni");
?>