php - A function to get the smaller number -
I have 2 variables each number (integer) I first sort them for the lowest number and the second largest number For example:
$ sortedVar = getSmaller (45, 62); // sorted at $ 45 worth = Gatesmler (87, 23); // back 23 Do you see what I have to do? Please can you help me? Thank you :)
min - find the following values .. < / P>
If the first and only parameter is an array, then
min ()returns the lowest value in that array. If at least two criteria are provided,min ()returns the lowest of these values.Note: Comparing the different types of values. For example, a non-numerical would be compared to someone, as if it was 0, but many non-numerical values would be compared to alphanumeric. Be careful when passing arguments with mixed types of values
Caution because
minimum ()can produce unexpected results ... < / P>
Comments
Post a Comment