Home >Backend Development >PHP Problem >How to use php phpversion function
php The phpversion function is used to get the current PHP version. Its syntax is string phpversion ([ string $extension ] ), and the parameter extension is an optional extension.
#php How to use the phpversion function?
Function: Get the current PHP version
Syntax:
string phpversion ([ string $extension ] )
Parameters:
extension Optional extension.
Description: Returns a string containing information about the currently running PHP interpreter or extension version.
php phpversion() function usage example
<?php echo phpversion(); ?>
Output:
7.0.8
The above is the detailed content of How to use php phpversion function. For more information, please follow other related articles on the PHP Chinese website!