PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 45%Total: 1,553 All time: 2,537 This week: 555Up
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 (3)  
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,553
This week:0
All time:2,537
This week:555Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:3398
 
Excellent
15 years ago (kishore kumar)
60%StarStarStarStar