| AND OR | string words | *

manual for phpversion | search for "phpversion"


phpversion

(PHP 3, PHP 4 , PHP 5)

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().

Manual © 2001-2008 The PHP Group
© 2008 phparadise | go to the top | search phparadise | generated in 0.038 seconds

44 hits by 4 users in the last 30 minutes.