Gerry:
If you need the variables in an array php will support the following. As an example generate HTML code in the following fashion
<input type="text" name="userinput[input][1]">
<input type="text" name="userinput[input][2]">
<input type="text" name="userinput[input][3]">
<input type="hidden" name="userinput[hidden][1]" value="hiddenvalue">
When this page is posted you will have the following array defined in your variable table
$userinput
it will have two indexes
"input"
"hidden"
$userinput["input"]
will have three elements with indexes
"1"
"2"
"3"
$userinput["hidden"]
will have one element with index
"1"
This is done automatically with no user input or parsing, the importance is placed on the name used for the input field on the page.
Hope it helps
Saludos
Gerardo