how to send array values through url in PHP?

前端 未结 7 1302
情话喂你
情话喂你 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条回答
  •  一向
    一向 (楼主)
    2020-12-16 08:17

    well what i would do is json_encode(php json) the array and assign that to a variable in php. you can then urlencode the variable to send it via the url. On the other end you can json_decode. Do look up for json if you are not aware of it. its very powerful and useful though.

提交回复
热议问题