Login   Register  
PHP Classes
elePHPant
Icontem

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

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2001-06-06 (13 years ago) RSS 2.0 feedStarStarStar 49%Total: 1,541 All time: 2,368 This week: 1,510Up
Version License Categories  
1.0Unspecified (ask the au...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: 42
All time rank: 17520 in United States United States
Week rank: 1077 Down116 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,541All time:2,368
 This week:0This week:1,510Up
User Ratings User Comments (1)  
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:1628
 
Excellent
5 years ago (kishore kumar)
60%StarStarStarStar