Jump to content

Variable inside Variable?


sKunKbad

Recommended Posts

I need $count to be inside $_POST['Q$count'] as in the following, but its not working.

 

++$count;

echo "For question # $count, \"<em>" .$question->q. "</em>\", your answer was {$_POST['Q$count']}.<br />";

 

I've tried a few different things, but can't get it done. What am I doing wrong here?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/77593-variable-inside-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.