LQHS Posted May 29, 2010 Share Posted May 29, 2010 Hi, I have a problem with a variable variable. $won='away'; echo"".${$won}_score.""; So I want the final variable to be "".$away_score."" but the way I wrote it won't work. Thanks for helping me out with this issue. LQHS Link to comment https://forums.phpfreaks.com/topic/203251-help-with-variable-variable/ Share on other sites More sharing options...
Alex Posted May 29, 2010 Share Posted May 29, 2010 echo ${$won . '_score'}; Link to comment https://forums.phpfreaks.com/topic/203251-help-with-variable-variable/#findComment-1064908 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.