I’m working with a PHP program that is running on multiple servers and producing slightly different strings from two of the servers.
**Server 1 Request Data:**
a:10:{s:9:"locale";s:5:"en_US","url";s:18:"https://testingurl.com/index.php";}
**Server 2 Request Data:**
{"locale":"en_US","url":"https:\/\/testingurl.com\/index.php";}
Both servers are sending the same variables, but in slightly different formats. Server 1 is adding additional information such as a:3: before the request, and Server 2 is omitting those details, but escaping forward slashes.
Question: Are the a:3: , s:9: a common encoding, or something that the server configuration may be adding to the Requests? I’m not familiar with the format, wondering if it’s something common. My goal is to figure out if it’s the PHP program adding the additional information or the server configuration.
It easy
Current issue
This serialized format is not valid
This what i think it should look like
Output