SupermanInNY wrote:First, I'm not sure of how to strip off the first '=' char.
For that bit, you could probably use [man]ltrim/man to strip off any '=' characters on the left-hand side of the string. Alternatively, if you know the first character is always going to be a '=' character, you could simply use [man]substr/man to retrieve everything after the first character.
SupermanInNY wrote:Second, I didn't understand how the parsing process works with that function. what's the delimiter in that function? I could use some guidance with that.
Well I suppose the answer to that question would be that '&' and '=' are both used as delimiters. It's essentially just taking what would appear to be any query string in a URL and parsing it into variables.
Since I don't like functions that generate random variables in the current scope, I prefer to use the second parameter of [man]parse_str/man and use the resulting array. This is what the second part of Example #1 in the PHP manual is doing.