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

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

慕斯
Release: 2023-03-09 21:22:02
Original
2445 people have browsed it

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

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!

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