how to send array values through url in PHP?

前端 未结 7 1311
情话喂你
情话喂你 2020-12-16 07:56

how to send array through url in PHP?

I have an array of product ids i want to use these id through url because this is the osCommerce needs it in which i am working

7条回答
  •  猫巷女王i
    2020-12-16 08:27

    It should be sufficient to encode them like this:

    http://your.url/page.php?myArray[0]=val1&myArray[1]=val2

提交回复
热议问题