Документ взят из кэша поисковой машины. Адрес оригинального документа : http://old.master.cmc.msu.ru/php/function.phpversion.html
Дата изменения: Sun Feb 3 22:52:34 2002
Дата индексирования: Tue Oct 2 04:16:23 2012
Кодировка:
phpversion

phpversion

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

phpversion -- Gets 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

<?php
// prints e.g. 'Current PHP version: 4.1.1'
echo 'Current PHP version: ' . phpversion();
?>

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