I am new in arrays Actually i want create one custom array from multidimensional array. I have Arrays like this below:-
Array
(
[0] => Array
(
[0] => 30
[1] => 31
)
[1] => Array
(
[0] => 4
[1] => 5
[2] => 32
)
[2] => Array
(
[0] => 29
)
)
$filterids = $getfilterids; // that is saved in one variable.
Right now there are only three arrays may be it will be more in future means it would any number of arrays. So i want to make combinations with another elemnets Array and after that need to implode with comma(,). Now i want output something like this :-
Array
(
[0] => 30,4,29
[1] => 30,5,29
[2] => 30,32,29
[3] => 31,4,29
[4] => 31,5,29
[5] => 31,32,29
)
I have searched but unable to start. Please help me how can i do this type of functionality. Note :- Arrays can be more it should be dynamic. Thanks in advance.