Home > Article > Backend Development > What are PHP environment variables? What other environment variables do you know?
The previous article introduced you to "What are PHP constants and external variables of variables? Will you use it? How many other constants do you know? 》, this article continues to introduce to you the environment variables of PHP variables and environment variables: Let's Go! ! !
There are two main s for environment variables: $_SERVER
and $_ENV
Environment variables; (For the rest of the environment variables, enter the following code to query!!!
)
Regarding viewing environment variables, the code is as follows
<?php phpinfo(); ?>
Code running results:
Recommended: "PHP Video Tutorial"
The above is the detailed content of What are PHP environment variables? What other environment variables do you know?. For more information, please follow other related articles on the PHP Chinese website!