Home >Backend Development >PHP Problem >What does php5.3 mean?
"5.3" refers to the version number of PHP, "5" is the main version number, and "3" is the sub-version number; "php5.3" refers to the third sub-version of the fifth main version of PHP Version. The general form of PHP version number is "Main version number. Sub version number. Stage version number [extended information]", which can be obtained through the constant "PHP_VERSION".
The operating environment of this tutorial: windows7 system, php5.3 version, DELL G3 computer
The general form of the PHP version is "Main version number .Sub version number. Stage version number [extended information]", each component will be displayed.
And "php5.3" refers to the third sub-version of the fifth major version of PHP.
All version numbers of PHP can be viewed through http://mirrors.sohu.com/php/. Here are some versions:
What PHP version is installed on our computer can be obtained by using the built-in predefined constants:
PHP_VERSION
(string)
The string of the current PHP version, in the form of "major version number. sub-version number. stage version number [extended information]".
PHP_MAJOR_VERSION
(int)
The major version number of the current PHP version, in the form of an integer (for example: "5.2.7-extra" version is int(5)).
PHP_MINOR_VERSION
(int)
The sub-version number of the current PHP version, in the form of an integer (for example: "5.2.7-extra" version is int(2)).
PHP_RELEASE_VERSION
(int)
The stage version number of the current PHP version, in the form of an integer (for example: "5.2.7-extra" version is int(7)).
PHP_VERSION_ID
(int)
The integer of the current PHP version, used for version comparison (for example: "5.2.7-extra" version is int(50207) ).
PHP_EXTRA_VERSION
(string)
The "extended information" information of the current PHP version, in the form of a string (for example: "5.2.7- extra" version is '-extra' ). Typically used by distribution vendors to indicate the version of a package.
Example:
<?php header("Content-type:text/html;charset=utf-8"); echo "当前PHP版本信息:".PHP_VERSION."<br>"; echo "当前PHP版本的主版本号:".PHP_MAJOR_VERSION."<br>"; echo "当前PHP版本的子版本号:".PHP_MINOR_VERSION."<br>"; echo "当前PHP版本的阶段版本号:".PHP_RELEASE_VERSION."<br>"; ?>
Rendering:
Recommended learning: "PHP Video tutorial》
The above is the detailed content of What does php5.3 mean?. For more information, please follow other related articles on the PHP Chinese website!