Possible Duplicate:
Find values in multidimensional arrays
This is my array, it contains an array of key value pairs.
[
{
valueA: 0,
valueB: 0,
day: "2010-04-09"
},
{
valueA: 0,
valueB: 0,
day: "2010-04-10"
}
]
I want to check if a certain value is at key "day" in any index (and if so, modify the values in that node)
is there an efficient way to do this with the in_array
method?
otherwise I guess I would do it with a nested for loop