Home >Backend Development >PHP Problem >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.
2. Method 2:
(1) Use the predefined constant PHP_VERSION to query, create a new php file, and enter it in it .
# (2) Output the corresponding URL in the browser to view the version information of 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!