PHP - Number: Finding the Smallest or Largest Number in an Unordered SeriesTag: number, smallest number, largest number Category: PHP Application, PHP Basicpost: 16 Mar 2008 read: 45 PHP Number Tips - Part 5: In order to find the maximum or minimum value of a series of unordered numbers, you can arrange the numbers in sequence and then extract the endpoints of the sequence such as the following:
There are many ways in finding the smallest or larger value in a number series. In the above, the list demonstrates one of the simplest. The numbers are placed in an array and the sort( ) function is used to sort the array so that the numbers line up sequentially. The smallest value will end up at the beginning of the list while the largest will end up at the end of the list. |
| | Give Your Opinion | Recommend |
|

