phpversionGets the current PHP version
&reftitle.description;
stringphpversionstringextension
Returns a string containing the version of the currently running PHP
parser or extension.
&reftitle.parameters;
extension
An optional extension name.
&reftitle.returnvalues;
If the optional extension parameter is
specified, phpversion returns the version of that
extension, or &false; if there is no version information associated or
the extension isn't enabled.
&reftitle.examples;
phpversion example
]]>
PHP_VERSION_ID example and usage
]]>
&reftitle.notes;
This information is also available in the predefined constant
PHP_VERSION. More versioning information
is available using the PHP_VERSION_*
constants.
&reftitle.seealso;
PHP_VERSION constantsversion_comparephpinfophpcreditsphp_logo_guidzend_version