Q:

php - get 2 words by 2 words

I want code to get 2 words by 2 words in php
example : 
stackoverflow the best site of asking

result :
2 words : stackoverflow the
2 words : best site
2 words : of asking

A:

$array_of_words = implode(' ',array_chunk(explode(' ',$text), 2));
print_r($array_of_words);

This should give you 

0=>stackoverflow the 1=>best site 2=>of asking

array_chunk() 

Chunks an array into size large chunks. The last chunk may contain less than size elements

implode() 

Join array elements with a glue string

