爆炸成相等的部分
|
$str = \"Hello fri3nd, you\'re looking good today! What a Great day this is! How fancy and cool!\";
$pieces = explode(\" \",$str, 3);
print_r($pieces);
所以这给了我$pieces[0] = \'Hello\',
$ pieces [1] = \'fri3nd \'... and the rest of the string is all shoved into
$ pieces [3]`。如何每3或4个字爆炸一次?
没有找到相关结果
已邀请:
2 个回复
才脊烽馈低
说明: 首先,您在任意(组合)空白处分割字符串:
然后“分割”结果数组:the5ѭ 然后您将
用
应用于任何结果的单词组
坝镰补翔奋
函数:-