But some friends' $_ENV is empty. The possible reasons are:
The variables_order value of your php.ini is "GPCS", which means that the order of the system when defining PHP predefined variables is GET, POST, COOKIES, SERVER , Environment(E) is not defined, you can modify the variables_order value of the php.ini file to the order you want, such as: "EGPCS". At this time, the value of $_ENV can be obtained
EGPCS value (EGPCS is the abbreviation of Environment, Get, Post, Cookies, Server - this is the full range of external variable sources in PHP)
The above has introduced the cause analysis of why php $_ENV is empty, including the cause analysis. I hope it will be helpful to friends who are interested in PHP tutorials.