I am trying to set lower limit and upper limit for an array. The lower limit is always constant, which is 0 but i want the upper limit to be varying based on the array values.
some times the array values are 1,2,3,4,5 and sometimes the array values are 100,200,300,400,500 and sometimes in thousands as well. So i do not want to set a constant value for upper limit as max($array) + 100 or something like that... so what could can i apply to make it variable according to the array values. I want the upper limit to be comfortably more than max of $array but not way too more or way too less. Any Suggestions?