The problem is $this->$t = $d; It isn’t adding it to the relevant array.
EG. when $t = ‘var2’, $this->$t should add a value to the $var2 array. But it’s not doing that unless I hardcode the varible name.
All the variables that are to be used are hardcoded in the object, none of the variables are to be created on the fly.
Doing this on another local machine (at home) works fine, but on my work machine, the setting of a variable using $this->$t does not work.
Is there an extension I could be missing?
Or… am i being a total idiot?
Thanks for the reply.
I should have added, I also need to be able to set the keys so the array_push method wont work, auto inc keys are useless for the app.