19/10/2012, 09:35
|
| | Fecha de Ingreso: octubre-2009
Mensajes: 223
Antigüedad: 15 años, 1 mes Puntos: 2 | |
Unir arrays similares Alguna función en php que haga esto, he mirado en la documentación y no veo nada, que no sea recorrer el array con bucle...
Array 1
(
[0] => Array
(
[1] => <tag1>
[2] => tag1
[3] =>
[4] => 1
[5] =>
[6] => </tag1>
)
[1] => Array
(
[1] => <tag2>
[2] => tag2
[3] =>
[4] => 2
[5] =>
[6] => </tag2>
)
)
Array 2
(
[0] => Array
(
[1] => <tag1>
[2] => tag1
[3] =>
[4] => 1
[5] =>
[6] => </tag1>
)
[1] => Array
(
[1] => <tag2>
[2] => tag2
[3] =>
[4] => 2
[5] =>
[6] => </tag2>
)
)
Array que quiero conseguir
(
[0] => Array
(
[1] => <tag1>
[2] => tag1
[3] =>
[4] => 1
[5] =>
[6] => </tag1>
)
[1] => Array
(
[1] => <tag2>
[2] => tag2
[3] =>
[4] => 2
[5] =>
[6] => </tag2>
)
[3] => Array
(
[1] => <tag1>
[2] => tag1
[3] =>
[4] => 1
[5] =>
[6] => </tag1>
)
[4] => Array
(
[1] => <tag2>
[2] => tag2
[3] =>
[4] => 2
[5] =>
[6] => </tag2>
)
) |