Cless Posted September 21, 2008 Share Posted September 21, 2008 Is there any way to define a variable name which is based on another variable? For example, if I had defined a variable named $blah, and gave it the value pie, would it be able to create a new variable with a name based on the value of $blah? In other words, the new variable name would be $pie, since the value of $blah is pie. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/125134-solved-defining-a-variable-name-based-on-another-variable/ Share on other sites More sharing options...
kenrbnsn Posted September 21, 2008 Share Posted September 21, 2008 You want variable variables Ken Quote Link to comment https://forums.phpfreaks.com/topic/125134-solved-defining-a-variable-name-based-on-another-variable/#findComment-646758 Share on other sites More sharing options...
Cless Posted September 21, 2008 Author Share Posted September 21, 2008 Thanks a lot. ^^ Quote Link to comment https://forums.phpfreaks.com/topic/125134-solved-defining-a-variable-name-based-on-another-variable/#findComment-646763 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.