Return to 018.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic |
1.1 ! misho 1: --TEST-- ! 2: POST Method test and arrays - 6 ! 3: --POST-- ! 4: a[][]=1&a[][]=3&b[a][b][c]=1&b[a][b][d]=1 ! 5: --FILE-- ! 6: <?php ! 7: var_dump($_POST['a']); ! 8: var_dump($_POST['b']); ! 9: ?> ! 10: --EXPECT-- ! 11: array(2) { ! 12: [0]=> ! 13: array(1) { ! 14: [0]=> ! 15: string(1) "1" ! 16: } ! 17: [1]=> ! 18: array(1) { ! 19: [0]=> ! 20: string(1) "3" ! 21: } ! 22: } ! 23: array(1) { ! 24: ["a"]=> ! 25: array(1) { ! 26: ["b"]=> ! 27: array(2) { ! 28: ["c"]=> ! 29: string(1) "1" ! 30: ["d"]=> ! 31: string(1) "1" ! 32: } ! 33: } ! 34: }