Hi,
I want to add some values to an array where the number of values can change. I want to loop through, say 1 to 5, and create variable names by appending numbers 1 to 5 to some variable name.
$max = 5;
for ($i = 0; $i < $max; $i++)
{
array_unshift($some_arr, $xxxx);
}
where $xxxx should be $var1, $var2, ..., $var5... ($var.$i)
How do I set up the variable name before inserting it into the array.
Thanx.