Howdy, I'd like to generate this dynamically...

PHP Code:
button0.num 0;
button1.num 1
I have got this far....
PHP Code:
for(i=0;i<2;i++){
    
trace ("button" ".num = " );

.....as in I can get the desired result in a trace statement, I just need it to magically get it out of the trace statement and turn it into usable code....

Thanks in advance.