I have an array with words below as an example.
$words = array('hello','world','wad','up','yo','etc');
what i want is next array with following by manipulating above
$phrase2 = array('hello world', 'world wad', 'wad up', 'up yo', 'yo etc');
$phrase3 = array('hello world wad', 'world wad up', 'wad up yo', 'up yo etc');
$phrase4 = array('hello world wad up', 'world wad up yo', 'wad up yo etc');
$phrase5 = array('hello world wad up yo', 'world wad up yo etc');
I hope my question is clear.
Slice array and then implode the results: