Hey everyone,
I hope you're doing well. I've been working with PHP 7 recently and came across a pretty interesting question regarding some changes in superglobals. I couldn't find a concrete answer, so I thought I'd reach out to this knowledgeable community for some guidance.
In the past, I've used server variables like $_SERVER['REMOTE_ADDR'] and $_SERVER['REQUEST_METHOD'] to access useful information about the server and request. However, I heard that in PHP 7, a few server variables have been added and some have been removed.
Can anyone confirm if this is true? If yes, I'd love to know which server variables have been added in PHP 7 and which ones have been removed. It would be great to have an updated list of superglobals to work with.
Thanks in advance for your help!

Hey there,
I've been exploring PHP 7 recently, and I can share my personal experience regarding the changes in superglobals. Interestingly, PHP 7 didn't introduce any new server variables to the superglobal $_SERVER array. So, the variables you were already familiar with like $_SERVER['REMOTE_ADDR'] and $_SERVER['REQUEST_METHOD'] remain the same.
However, there were a few server variables that got removed in PHP 7. One important variable that's no longer available is $_SERVER['HTTP_PROXY_CONNECTION'], which used to provide information about the client's proxy connection. If you relied on this variable in your code, you might need to find an alternative solution in PHP 7.
I hope this sheds some light on the changes in superglobals in PHP 7. Let me know if there's anything else you'd like to know!