How to use php phpversion function

藏色散人
Release: 2023-02-23 06:14:01
Original
3273 people have browsed it

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 ] )
Copy after login

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();
?>
Copy after login

Output:

7.0.8
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template