Hello Vincent and Duncan, i have a similar trouble. I understand the solution you gave to Duncan, but in the case the variable was defined, is the sintaxis "$someting$thatChanges" alright?
this is a part of my code:
$i=1;
while ($i<=$bars):
$parts_gen_v_prepol$i=explode ("@", $gen_v_prepol$i);
$gen_v_com$i=Polar ($parts_gen_v_prepol$i[0],$parts_gen_v_prepol_$i[1]);`
$i++;
endwhile;
I'm receiving a ($bars) number of data called $parts_gen_v_prepol_1, 2, and so on. And then i'm processing it with an explode and converting to $gen_v_com_1, 2, 3, through a custom function Polar(). The thing is it doesn't seem to understand the mixing: $gen_v_com$i. I tried with $gen_v_com_{$i}, but it doesn't work anyway.
Well, if you can help me or tell me some reference, many many thanks.