Hi Guys,
I am having trouble with arrays. I have some forms and each time a form is submitted i want to add two form values to the end of an existing array.
myarray = array(3,8,4,9);
How do I append these two variables to the end of my array without knowing that the current array contains 4 values?
$formvalue1 = 5;
$formvalue2 = 11;
Do I perform a count(); and then add accordingly
myarray[count + 1] = formvalue1;
myarray[count + 2] = formvalue2;
Cheers