how to pass an array in GET in PHP?

后端 未结 12 932
萌比男神i
萌比男神i 2020-11-28 14:37
$idArray = array(1,2,3,4);

can I write this line in HTML?

12条回答
  •  [愿得一人]
    2020-11-28 14:54

    Just use explode() and pass it's value. You can get the array back by using implode().

    Note: Choose the delimiter according to the type of content that does not exist in your array. For eg. If you are sure that there won't be any commas ( , ) in your array, then pick comma as delimiter.

提交回复
热议问题