Posted by sagejoshua on 11/06/05 18:36
Help! Is there a way to declare a variable name using other variables in Javascript? In PHP, it's done with something like: <?php $var1 = "foo"; ${$var1.bar} = "great!"; print $foobar; // Outputs "great!" ?> Is there a similar method in Javascript? Thanks. Josh
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming