How to write program for Mini Max Sum in PHP?

Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly for of the five integers. Then print the respective minimum and maximum values. $arr = array(1,4,2,8,4,0); $temp_arr = array(); foreach($arr as $index => $row){     $temp_arr[] = array_sum($arr) – $arr[$index]; } sort($temp_arr); echo […]