It is the result of fetch array how can i find min & max from this array.
Array ( [0] => 0 [pr] => 0 )
Array ( [0] => 200 [pr] => 200 )
Array ( [0] => 250.1 [pr] => 250.1 )
Array ( [0] => 500 [pr] => 500 )
Array ( [0] => 800 [pr] => 800 )
Array ( [0] => 5656 [pr] => 5656 )
Array ( [0] => 34343 [pr] => 34343 )
Array ( [0] => 565656 [pr] => 565656 )
minandmaxfunctions. It doesn't make sense to flatten the array, that's the equivalent of ordering cold food and heating it up afterwards. You should order it hot in the first place.