How can I loop through this array and find out whether there is at least one value that is within plus or minus 250 of 0? In other words, if there is at least one value that is anywhere from -250 to +250, then this is a positive result. Otherwise, return negative.
Here is the array (which should return a positive result because of the number -144):
Array
(
[Nov 18, 2011] => Array
(
[C] => -1738
)
(
[I] => -144
)
[Jan 13, 2012] => Array
(
[C] => -3193
)
(
[M] => 4377
)
)
1 Answer