PHP Wysardry
PHP Manual

PHP documentation.



Home / PHP / Manual / ...



PHP Manual
Prev Next

phpversion

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

phpversion -- Get the current PHP version.

Description

string phpversion (void)

Returns a string containing the version of the currently running PHP parser.

Note: This information is also available in the predefined constant PHP_VERSION.

Example 1. phpversion() example

// prints e.g. 'Current PHP version: 3.0rel-dev'
echo "Current PHP version: ".phpversion();

See also version_compare(), phpinfo(), phpcredits(), php_logo_guid(), zend_version().


Prev Manual Home Next
phpinfo Up php_logo_guid
Site Menu

Amazon.ca
Amazon.com
Amazon.co.uk



Most recently updated on 11 May, 2003

Home / PHP / Manual / ...



Please feel free to contact us with any comments or suggestions
PHP Manual
PHP Wysardry

This site is hosted by Spaceports