EbrahemSamer
2 months ago
12465
7
General

How to iterate though array of arrays using PHP ?

Posted 2 months ago by EbrahemSamer

I've array of arrays say and I wanna combine each element with every element:

[ [ahmed, omar , ali],

[mohammed, sayed],

[mostafa, ali],

]

I want the result to be like that [

'ahmed mohammed mostafa',

'ahmed mohammed ali',

'ahmed sayed mostafa',

'ahmed sayed ali'

...... same thing with omar and ali

]

need way or algorithms to make it, thanks

Please sign in or create an account to participate in this conversation.