PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2001-06-06 (15 years ago) RSS 2.0 feedStarStarStar 49%Total: 1,545 All time: 2,464 This week: 909Up
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

  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,545
This week:0
All time:2,464
This week:909Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2085
 
Excellent
7 years ago (kishore kumar)
60%StarStarStarStar