I have following array:
array(6) {
[0]=>
string(4) "XXX1"
[1]=>
int(16)
[2]=>
string(4) "YYY1"
[3]=>
string(4) "XXX2"
[4]=>
int(632)
[5]=>
string(4) "YYY2"
}
I would like to have an output like this:
First XXX - First int() - First YYY\n
Second XXX - Second int() - Second YYY\n
How to achieve this using while, for or foreach ?
Thanks.