我有一个字符串,我想每 5 个单词后放一个单词。这个词来自数组。
French History Maths Physics Spanish Chemistry Biology English DT Maths History DT Spanish English French RS
我想从数组中获取 2 个单词,然后在 5 个单词之后将其插入到上面的字符串中。
$words = arrray(a, able, about, above, abst, accordance, according, accordingly, across, act, actually, added, adj);
像这样的输出:
French History Maths Physics Spanish a able about above abst Chemistry Biology English DT Maths according according accordingly across act Spanish English French RS.
慕桂英546537