cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

variable names in arrays

ptc-1123085
1-Newbie

variable names in arrays

Is it possible to declare a series of arrays using variables in the array names?

for ($i=0; $i<10;$i++) {

global cat_array$j[];

---------------------------
Arbortext Editor Message

1 REPLY 1

Sorry for the incomplete entry. This is what I meant to type in the browser window:

for ($i=0; $i<10; $i++) {

global cat_array$i[];

}

I have tried several variants on cat_array$i[] and can't seem to get any of them to work. Thank you in advance for any help in this matter.

- karen dL.