ah wicked
so i got this now:
$cap = "caption_$counter";
$$cap = $caption;//new variable made, called: $caption_1 etc
now later on in the script ive got another loop where i want to output the different variables values.
would this work:
for($i=1;$i==3;$i++) {
$newcap = "cap_$i";
echo $$newcap;
}