How to pass an array within a query string?

前端 未结 10 1340
一整个雨季
一整个雨季 2020-11-22 02:35

Is there a standard way of passing an array through a query string?

To be clear, I have a query string with multiple values, one of which would be an array value.

10条回答
  •  既然无缘
    2020-11-22 02:58

    Check the parse_string function http://php.net/manual/en/function.parse-str.php

    It will return all the variables from a query string, including arrays.

    Example from php.net:

    
    

提交回复
热议问题