Fuzzmaster
New Member
Does WebSpeed support variable variables?
In PHP if:
$var = 'Account';
$Account_001 = 'Some Account';
$Account_002 = 'Another Account';
$CurrentAccount = $var.'_001';
Then:
$$CurrentAccount = 'Some Account';
This is handy for lots of reasons... I know given the example an array would be better; however, this is simply and example. I typically use variable variables to populate my form objects while maintaining a little more flexibility than arrays offer.
Or:
Am I just being dense?
In PHP if:
$var = 'Account';
$Account_001 = 'Some Account';
$Account_002 = 'Another Account';
$CurrentAccount = $var.'_001';
Then:
$$CurrentAccount = 'Some Account';
This is handy for lots of reasons... I know given the example an array would be better; however, this is simply and example. I typically use variable variables to populate my form objects while maintaining a little more flexibility than arrays offer.
Or:
Am I just being dense?