In normal circumstances if I have two variables, I can write them into an array like this
$var1 = 3;
$var2 = 4;
$myarray = array($var1, $var2);
What if I don't know in advance how many variables I will have? Variables are sent via form input from another script with method="POST". I can get 4 variables now but a few minutes later someone else might send 14 variables.
All I really need is to save the variables in an array.
Could you please point me in the right direction?