Handling large amount s of ajax/POST commands
To answer the specific question: if you know the arguments in advance (as you should), you can loop over them and add them to an arguments-array instead.

Always, ALWAYS, validate input. Not just to check that it is there but also that it confirms to expectations.