Find count of negative numbers , count of zeros , maximum valued negative number , minimum valued positive number and product of non - zero numbers
$ max_neg = PHP_INT_MIN ; $ min_pos = PHP_INT_MAX ; $ count_neg = 0 ; $ count_zero = 0 ; $ prod = 1 ; for ( $ i = 0 ; $ i < $ n ; $ i ++ ) {