PHP function phpversion()

Availability in PHP 4.0

Gets the current PHP version

Parameters

Parameter Data type Default value Note
$extension string null An optional extension name.

Return values

string

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.

Other resources

Official phpversion documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.