What is the difference between getenv() and $_ENV?
getenv()
$_ENV
Any trade-offs between using either?
I noticed sometimes getenv() g
I found getenv() useful to avoid a strange PHP bug where sometimes $_SERVER and $_ENV was undefined if auto_globals_jit was enabled (creating the _SERVER and _ENV variables when they're first used). Since then I began to to use it.
$_SERVER
auto_globals_jit