I have following array structure. I'd like to get max value in array, and if values in array are same to unset this array.
   Array(
        [499670] => Array
            (
                [499670] => 1299.00
                [503410] => 1299.00
                [528333] => 1299.00
                [645862] => 0.00
            )
        [499671] => Array
            (
                [499671] => 1149.00
                [503408] => 1149.00
                [528329] => 1500.00
                [645858] => 0.00
            )
        [499672] => Array
            (
                [499672] => 0.00
                [503406] => 0.00
                [528324] => 0.00
                [645850] => 0.00
            )
)
I want to get the following result
   Array(
                [499670] => 1299.00 >>> one of values in first array
                [528329] => 1500.00 >>> max value in second array
                {third array was removed, because all values are same}
)
 
    