How $_POST store array elements in PHP
Sometime we need an array form elements like this
1 | <input type="text" name="foo[]" value="a" /> |
But some of that contain key some didn’t. What will we actually get in php $_POST
?
According to example above,
1 |
|
will output:
1 | Array |
But let say the index is in string form
1 | <input type="text" name="foo[]" value="a" /> |
will output:
1 | Array |