数组?
你还是把组数Str=join(Arr,",")
等接到后再split(Str,",")

解决方案 »

  1.   

    GET/POST只能传递简单数据结构,传递数组、对象、枚举等是不可能的。
      

  2.   

    要使你的 <form> 结果被当成 array 发送到 PHP 脚本,你要对 <input>,<select> 或者 <textarea> 单元这样命名: 
    <input name="MyArray[]">
    <input name="MyArray[]">
    <input name="MyArray[]">
    <input name="MyArray[]">
     
    注意变量名后的方括号,这使其成为一个数组。你可以通过给不同的单元分配相同的名字来把单元分组到不同的数组里: 
    <input name="MyArray[]">
    <input name="MyArray[]">
    <input name="MyOtherArray[]">
    <input name="MyOtherArray[]">
     
    这将产生两个数组,MyArray 和 MyOtherArray,并发送给 PHP 脚本。还可以给数组分配指定的键名: 
    <input name="AnotherArray[]">
    <input name="AnotherArray[]">
    <input name="AnotherArray[email]">
    <input name="AnotherArray[phone]">
     
    AnotherArray 数组将包含键名 0,1,email 和 phone。
      

  3.   

    <input name="AnotherArray[]">
    <input name="AnotherArray[]">$ARR=$_GET["AnotherArray"]
      

  4.   

    对的用AnotherArray[]方式传递就行了```
    不过建议先join 然后split