jQuery .serialize() turns “[]” into %5B%5D
PHP http_build_query seems to turn the first “[]” into %5B0%5D, the second into %5B1%5D, etc. So it seems to be using some kind of counter.
Why are there differences in these almost identical functions?
Is it just my browser that makes them different? How can I make sure the http_build_query doesn’t add the extra counter (or let jQuery know I need the extra counter).
%5B0%5Dis the encoded version of[0],%5B1%5Dis the encoded version of[1], etc.The number in between is a literal character, not part of any %HH encoding.