How to pass an array via $_GET in php?

后端 未结 4 1626
眼角桃花
眼角桃花 2020-11-29 03:35

How can I pass one or more variables of type array to another page via $_GET?

I always passed variable values in the form ?a=1&b=2&c=3

W

4条回答
  •  心在旅途
    2020-11-29 04:03

    Just repeat your $_GET variables like this: name=john&name=lea

    This gives you an array.

    I used to believe it would be overwritten!

提交回复
热议问题