Questions regarding the get_headers() php function:
- The function presents the headers in an array - is there any set order as to which header goes first?
- I noticed that the HTTP status code sent by the page goes first - is that always a given?
Questions regarding the get_headers() php function:
Yes. That's a given.
It reads the http headers from top top bottom, and a response always starts with the status line.
The first line of a Response message is the Status-Line, consisting of the protocol version followed by a numeric status code and its associated textual phrase...
You can read more about HTTP responses here: https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html