So basically I have array -
Array (
[0] => Array
(
[name] => my_name
[year] => my_year
[other] => Array
(
[0] => Yes
[1] => No
[2] => Other_values
}
)
[1] => Array
(
[name] => my_name2
[year] => my_year2
[other] => Array
(
[0] => Yes2
[1] => No2
[2] => Other_values2
}
)
)
So basically I would remove the indexes from the last subArray which are both [other] arrays.
Well basically how I would like it to be displayed is -
Array (
[0] => Array
(
[name] => my_name
[year] => my_year
[other] => Array (Yes, No, Other_values )
)
[1] => Array
(
[name] => my_name2
[year] => my_year2
[other] => Array (Yes2, No2, Other_values2 )
)
)
Basically without indexes.
Is it even possible, and if it isn't, then maybe it's possible at the creation of the array?
I'm creating it with the array_push(); function.
If you need my PHP code of the array_push(); function, just give me a notice.
Hope you understood what I ment, if something is unclear, you are welcome to ask me, I'll try to explain more :)!