how to pass an array in GET in PHP?

后端 未结 12 931
萌比男神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:08

    A session is a much safer and cleaner way to do this. Start your session with:

    session_start();
    

    Then add your serialized array as a session variable like this:

    $_SESSION["venue"] = serialize($venue);
    

    The simply call up the session variable when you need it.

提交回复
热议问题