HTML guarantees the order of form fields when they are encoded on submit, which means this form:
<form method="GET">
<input name="Foo[]" value="one">
<input name="Foo[]" value="two">
<input name="Foo[]" value="three">
</form>
will always be encoded into this query string:
?Foo[]=one&Foo[]=two&Foo[]=three
But here's my question. When PHP pulls these values into $_GET['Foo']
does PHP guarantee the order of the array? Meaning, given that query string, will the value of Foo
always equal:
array('one', 'two', 'three'); //?