Posted by Steve on 04/23/07 18:11
"Tom" <tom@to.com> wrote in message news:f0is91017bv@drn.newsguy.com...
| On Mon, 23 Apr 2007 11:46:31 +0200, Boris Savc wrote...
| >
| >Sorry for confuzing subject, but that's the thing I'm trying to achieve.
For
| >example:
| >
| >$a = "Hello";
| >$b = 1;
| >
| >I want to change the name of $a to $a1 where 1 is value of variable $b!
| >
| >Thanks for all the help,
| >Boris
| >
| >
|
|
| Probably have to use a hash/associative array where you can make up
whatever key
| name you need to store its value.
nope...
${'a' . $b};
works just fine...though not at all advisable. ;)
[Back to original message]
|