The phpinfo() function displays the elements of the $_ENV array and their values.
So, it is one that It is a built-in function in PHP that provides information about the PHP environment, including configuration settings, loaded extensions, and environment variables.
The $_ENV array is a superglobal array that contains the values of environment variables. Environment variables are variables defined outside of the PHP script, typically in the server's configuration or the user's environment.
Hence The phpinfo() function displays the $_ENV array in a structured format, including the name of each environment variable and its corresponding value.