Menu
首页
搜索
SpringBoot
Vue
Vant
Python
Android
Harmony
InnoDB
个下划线
关注
发信
关注(28)
粉丝(399)
动态
文章
图片
PHP Preg-Replace多个下划线
如何使用preg_replace将多个下划线替换为一个下划线?
最佳答案
preg_replace('/[_]+/', '_', $your_string);
10-07 18:05