Predefined PHP constants

jetFlow.io > Documentation  > Predefined PHP constants

Predefined PHP constants

{%PHP_VERSION}
The current PHP version as a string in “major.minor.release[extra]” notation.
{%PHP_MAJOR_VERSION}
The current PHP “major” version as an integer (e.g., int(5) from version “5.2.7-extra”). Available since PHP 5.2.7.
{%PHP_MINOR_VERSION}
The current PHP “minor” version as an integer (e.g., int(2) from version “5.2.7-extra”). Available since PHP 5.2.7.
{%PHP_RELEASE_VERSION}
The current PHP “release” version as an integer (e.g., int(7) from version “5.2.7-extra”). Available since PHP 5.2.7.
{%PHP_VERSION_ID}
The current PHP version as an integer, useful for version comparisons (e.g., int(50207) from version “5.2.7-extra”). Available since PHP 5.2.7.
{%PHP_EXTRA_VERSION}
The current PHP “extra” version as a string (e.g., ‘-extra’ from version “5.2.7-extra”). Often used by distribution vendors to indicate a package version. Available since PHP 5.2.7.
{%PHP_OS}

See more: http://php.net/manual/en/reserved.constants.php

No Comments

Sorry, the comment form is closed at this time.