I've got an array of input data and I need to find the max and min values. The POST array could look like any of the following, depending on the options the user selected:
[a] => Array
(
[0] => 2
)
[a] => Array
(
[0] => 2
[1] => 4
[2] => 7
)
[a] => Array
(
[0] => 2
[1] => 4
[2] => Array
(
[0] => 7
)
)
I had it working by sorting the array and grab the min and max values when 'a' was always a single-dimensional array, but since we've added the option for it to be multidimensional I'm stuck.