1 <?php
2 $str = 'a b c   d    e';
3 echo preg_replace('# #','',$str);//输出 "abcde"

 

相关文章:

  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
相关资源
相似解决方案