Login   Register  
PHP Classes
elePHPant
Icontem

Greatest: Keep track of the greatest of several values

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-04-05 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 100 All time: 7,502 This week: 1,988Up
Version License PHP version Categories  
greatest-value 0.1Freeware5.3PHP 5, Math
Description Author  

This class can keep track of the greatest of several candidate values.

It takes one or more candidate values and stores which is the greatest of them.

The class can take a callback function parameter that can be called to perform the comparison between each candidate and the previous greatest value.

At any time the class can return the current greatest value or reset to the initial state of when no candidate value was evaluated.

Picture of hernan saab
Name: hernan saab <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 3676440 in United States United States
Week rank: 1790 Up210 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file Greatest.php Class a nice layer of abstraction to keep track of greatest value
Accessible without login Plain text file test_greatest.php Example script that tests and shows how Greatest.php works

 Version Control Unique User Downloads Download Rankings  
 0%Total:100All time:7,502
 This week:0This week:1,988Up