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 Quote 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'}; Quote Link to comment https://forums.phpfreaks.com/topic/203251-help-with-variable-variable/#findComment-1064908 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.