Hi,
I'm probably missing something tiny here, but what I want to do is to append the number ($picnum) to the end of a variable name in a loop so that I end up with four variables of the type $pic$picnum - if you know what I mean.
The code is like this:
for ($picnum = 1; $picnum <= 4; $picnum ++){
// Rest of code here
$pic{$picnum} = $filename; # $filename was earlier defined.
}
echo $pic1;
echo $pic2; # etc...
The problem is that nothing comes out with the echo statements, leading me to believe a problem in getting the naming convention of the variable right. Can anyone illuminate the situation for me please?