I have an array that looks like this:
array
0 =>
array
'Time Stamp' => string '11/22/2011 00:05:00' (length=19)
'Name' => string 'CAPITL' (length=6)
'PTID' => string '61757' (length=5)
'LBMP ($/MWHr)' => string '48.24' (length=5)
'Marginal Cost Losses ($/MWHr)' => string '1.13' (length=4)
'Marginal Cost Congestion ($/MWHr)' => string '0.00' (length=4)
1 =>
array
'Time Stamp' => string '11/22/2011 00:05:00' (length=19)
'Name' => string 'CENTRL' (length=6)
'PTID' => string '61754' (length=5)
'LBMP ($/MWHr)' => string '47.30' (length=5)
'Marginal Cost Losses ($/MWHr)' => string '0.19' (length=4)
'Marginal Cost Congestion ($/MWHr)' => string '0.00' (length=4)
2 =>
array
'Time Stamp' => string '11/22/2011 00:05:00' (length=19)
'Name' => string 'DUNWOD' (length=6)
'PTID' => string '61760' (length=5)
'LBMP ($/MWHr)' => string '49.46' (length=5)
'Marginal Cost Losses ($/MWHr)' => string '2.36' (length=4)
'Marginal Cost Congestion ($/MWHr)' => string '0.00' (length=4)
3 =>
array
'Time Stamp' => string '11/22/2011 00:05:00' (length=19)
'Name' => string 'GENESE' (length=6)
'PTID' => string '61753' (length=5)
'LBMP ($/MWHr)' => string '46.50' (length=5)
'Marginal Cost Losses ($/MWHr)' => string '-0.61' (length=5)
'Marginal Cost Congestion ($/MWHr)' => string '0.00' (length=4)
4 =>
array
'Time Stamp' => string '11/22/2011 00:05:00' (length=19)
'Name' => string 'H Q' (length=3)
'PTID' => string '61844' (length=5)
'LBMP ($/MWHr)' => string '42.00' (length=5)
'Marginal Cost Losses ($/MWHr)' => string '-0.04' (length=5)
'Marginal Cost Congestion ($/MWHr)' => string '0.31' (length=4)
5 =>
array
'Time Stamp' => string '11/22/2011 00:05:00' (length=19)
'Name' => string 'HUD VL' (length=6)
'PTID' => string '61758' (length=5)
'LBMP ($/MWHr)' => string '49.46' (length=5)
'Marginal Cost Losses ($/MWHr)' => string '2.36' (length=4)
'Marginal Cost Congestion ($/MWHr)' => string '0.00' (length=4)
6 =>
array
'Time Stamp' => string '11/22/2011 00:05:00' (length=19)
'Name' => string 'LONGIL' (length=6)
'PTID' => string '61762' (length=5)
'LBMP ($/MWHr)' => string '50.88' (length=5)
'Marginal Cost Losses ($/MWHr)' => string '3.77' (length=4)
'Marginal Cost Congestion ($/MWHr)' => string '0.00' (length=4)
7 =>
array
'Time Stamp' => string '11/22/2011 00:05:00' (length=19)
'Name' => string 'MHK VL' (length=6)
'PTID' => string '61756' (length=5)
'LBMP ($/MWHr)' => string '48.66' (length=5)
'Marginal Cost Losses ($/MWHr)' => string '1.55' (length=4)
'Marginal Cost Congestion ($/MWHr)' => string '0.00' (length=4)
It comes from a CSV that has around 3000 lines, the thing is i only need parts of this array.
What i ultimately want to do is to write a function to remove parts of array by value, such as removing all Array's containing the Name 'MHK VL' as shown array[7][name].
If someone could point me in the correct direction in terms of what functions i should be using to do this, that would be great.
Thank you,