Home  >  Article  >  Backend Development  >  What are PHP environment variables? What other environment variables do you know?

What are PHP environment variables? What other environment variables do you know?

慕斯
慕斯Original
2021-05-24 14:06:112273browse

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

What are PHP environment variables? What other environment variables do you know?

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:

What are PHP environment variables? What other environment variables do you know? 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!

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