I've got a string and i wanted to put a word every after 5 words. The word is coming from array.
French History Maths Physics Spanish Chemistry Biology English DT Maths History DT Spanish English French RS
and i want to get 2 words from the array then insert it to the string above after 5 words.
$words = arrray(a, able, about, above, abst, accordance, according, accordingly, across, act, actually, added, adj);
Like this output :
French History Maths Physics Spanish a able about above abst Chemistry Biology English DT Maths according according accordingly across act Spanish English French RS.