We are looking a function that can merge the array keys and values and update it particularly.
$array = array('testing1','testing2','testing3','testing4','testing5','testing6','testing7','testing8','testing9','testing10','testing11','testing12','testing13','testing14');
we just want to merge 10 values with ‘space’ like this.
$finalarray = array('testing1 testing2 testing3 testing4 testing5 testing6 testing7 testing8 testing9 testing10', 'testing11 testing12 testing13 testing14');
Is there any function that do same thing in PHP ?
you can use
array_chunkwitharray_mapOutput