I wonder if someone can help me please. I am sending a webhook from Segment to my back-end. This is the final result of the destination URL including the parameters:
The standalone parmameters like cid is easy to get, but the indexed query string parameters like category1 and category2 is where I am stuck. I tried this approach How to get multiple parameters with same name from a URL in PHP but it is not really the right solution for my case.
I also have the option of sending the webhook in JSON format, if that would make more sense, but still, not sure how to get the indexed parameters like itemsku1 and itemsku2.
I also forgot to mention that the idexed parameters can change depending on the amounts of products purchased, so I do not know beforehand how many there will be in the URL.
Thanks in advance!
itemsku[]=012&itemsku[]=345oritemsku[1]=012&itemsku[2]=345. Then you'll have a$_GET['itemsku']array. How are you building this URL?