我正在做一个用 php 清理文本的项目。说我有这样的字符串:
$string = 'Life is like. . . . . . a box of chocolate. . . . . '; //each dot separated by space
我怎样才能得到像
$string ='Life is like a box of chocolate';
郎朗坤
相关分类