how to pass an array in GET in PHP?

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

can I write this line in HTML?

12条回答
  •  北海茫月
    2020-11-28 15:05

    Another option (even nice looking, I'd say):

    
      
      
      
      
    
    

    But of course it gets sent as POST. I wouldn'r recommend sending it with serialize since the output of that function can get pretty big and the length or URL is limited.

    with GET:

提交回复
热议问题