Home  >  Article  >  Backend Development  >  How to use php phpversion function

How to use php phpversion function

藏色散人
藏色散人Original
2019-05-31 11:17:463219browse

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.

How to use php phpversion function

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn