Home >Backend Development >PHP Problem >How to query in php

How to query in php

藏色散人
藏色散人Original
2019-10-10 09:29:092964browse

How to query in php

phpHow to query PHP information?

1. Method 1:

Command line query. If the environment variables have been configured, enter php -v directly on the command line and it will be displayed. PHP version information. If the environment variable is not configured, directly enter the PHP installation directory on the command line, then enter the command php -v, enter the query command in the installation directory, and you can see that the output version information is PHP5.3.29.

How to query in php

2. Method 2:

(1) Use the predefined constant PHP_VERSION to query, create a new php file, and enter it in it .

How to query in php

# (2) Output the corresponding URL in the browser to view the version information of php.

How to query in php

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of How to query in php. 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