$var="profile['Gamer']['last_name']";
echo ${$var};
Gives
Undefined variable: profile[‘Gamer’][‘last_name’]
. But if i try to echo $profile[‘Gamer’][‘last_name’] value exist
I have tried echo $$var that too didn’t work
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Keep in mind that there are serious security issues to something like this, and that your code will probably be very hard to understand for anybody but your self.