Although the other replies will probably work, the idea is probably misguided. There are very, very few places where it's a good idea to use variables for variable names, and this isn't one of them. Try to rewrite your code using a hash instead. See mjd's excellent post for more information.