創建的關鍵字數組我試圖通過使用HTML輸入 創建的關鍵字數組,這裏是我的html輸入PHP通過HTML輸入
<form method="post" action="">
<input type="text" name="name[][you]" value="" />
<input type="text" name="name[][he]" value="" />
<input type="text" name="name[][she]" value="" />
<input type="text" name="name[][you]" value="" />
<input type="text" name="name[][he]" value="" />
<input type="text" name="name[][she]" value="" />
<button type="submit">go</button>
</form>
我outbut是
Array ([0] => Array ([you] => jhon) [1] => Array ([he] => joy) [2] => Array ([she] => sarah) [3] => Array ([you] => samm) [4] => Array ([he] => petter) [5] => Array ([she] => susan))
,但我想數組像這樣
Array([0]=> array ([you] => jhon [he] => joy [she] => sarah)[1]=> array ([you] => pitter [he] => tom [she] => suszan))
是有沒有去做到這一點
爲什麼不寫確切的數字在括號 - ''等等? –