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! 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 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. ^^ 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
Archived
This topic is now archived and is closed to further replies.