I get the following array, all data are separated by a *, I tried to use explode and implode without results, I think something more complex is needed to solve it using php 5.6
Array
(
[0] =>
[1] => 1
[2] => Dato2
[3] => Dato3
[4] => Dato4
[5] =>
[6] => Dato6
[7] => Dato7
[8] => Dato8
[9] => Dato9
[10] => *
[11] => 2
[12] => Dato2
[13] => Dato3
[14] => Dato4
[15] =>
[16] => Dato6
[17] => Dato7
[18] => Dato8
[19] => Dato9
[20] => *
)
I would like to separate by "*" and make it look like this
Array
(
[0] => stdClass Object
(
[1] => 1
[2] => Dato2
[3] => Dato3
[4] => Dato4
[5] =>
[6] => Dato6
[7] => Dato7
[8] => Dato8
[9] => Dato9
)
[1] => stdClass Object
(
[11] => 2
[12] => Dato2
[13] => Dato3
[14] => Dato4
[15] =>
[16] => Dato6
[17] => Dato7
[18] => Dato8
[19] => Dato9
)
)
Thank you for your attention I will be attentive to your answers greetings.