PHP Version Parser: This class splits a php version number into its different components.

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 1,549 All time: 2,522 This week: 354Up
Version License Categories
1.0Unspecified (ask ...System information
Description Author

This class splits a php version number into its different components. The supported components are:

Major Version
Minor Version
Revision Number
Release Candidate Number
Beta Version Number
Alpha Version Number
Patch Level Number

By default, all of the above components are -1. If a component is not -1, that means there is a value for that component.

This class also contains a compare function for comparing two version numbers together. It compares the version number associated with this class and a version number that is passed in as an argument. If the passed in version number is newer than the version number associated with this class, 1 is returned, if the passed in version number is older than the version number associated with this class, -1 is returned, and if they are equal, 0 is returned.

Picture of Scott Christensen
Name: Scott Christensen <contact>
Classes: 4 packages by
Country: United States United States
Age: 48
All time rank: 19321 in United States United States
Week rank: 445 Down45 in United States United States Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file cPHPVersion.inc ??? PHP version parser class
Accessible without login Plain text file hPHPVersion.inc ??? PHP version parser header file
Accessible without login Plain text file TestPHPVersion.php3 ??? Page for testing php version parser

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,549
This week:0
All time:2,522
This week:354Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2371
 
Excellent
11 years ago (kishore kumar)
60%StarStarStarStar
 

For more information send a message to info at phpclasses dot org.