I'm trying to accept an unknown number of similarly named POST variables like the following:
foo[bar[0]] = 56 foo[bar[1]] = 43 foo[bar[2]] = ah84 foo[bar[3]] = 92hs With the rest of my POST data looking like:
foo[baz] = 1432 foo[expected] = 48hf Some requests may have no foobars, but most will have 1, and some with have 2-4.
Ideally I would like to end with an array: array( 56, 43, ah84, 92hs)
Is there a way to loop through the POST variables not knowing the number of them? I can create the array if I know what to expect, but in this case I have no way of telling what will come across.