Need some help removing element from array
Posted: Mon Oct 26, 2009 2:53 pm
I have a series of arrays within an array, and I need to delete an element from each of the sub-arrays. Here is a snippet of the array:
I need to remove the fifth element from each of the arrays. I tried using unset, but it worked one level higher than I needed it to. Does anyone have any iput on how to do this? While I'm asking, is this the right way to stucture the array, or would you do it differently?
Thanks in advance!
Code: Select all
Array
(
[0] => Array
(
[0] => sls.com
[1] => -
[2] => 37
[3] => $20,015
[4] =>
[5] => 8D 21H
)
[1] => Array
(
[0] => cnnestore.com
[1] => 2
[2] => 28
[3] => $165
[4] =>
[5] => 1H 4M
)
Thanks in advance!