PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Starting with
-------------
Array
(
[0] => array_name_1
(
[0] => some value 1
[1] => some value 2
)
[1] => array_name_2
(
[0] => some value 3
[1] => some value 4
)
}
Ending with
-----------
Array
(
[0] => NEW_array_name_1
(
[0] => some value 1
[1] => some value 2
)
[1] => NEW_array_name_2
(
[0] => some value 3
[1] => some value 4
)
}
There is probably a function for this, but searching through the PHP manual on arrays I couldn't find anything
Because of how named index arrays work, it's not possible in a single, built-in function call, however with numericly index arrays array_splice() works.