corbin Posted November 12, 2006 Share Posted November 12, 2006 Ok so I have a script and I have a while loop and I cant figure out how to get it to treat $_POST['answer_$i'] as if $i was the value of $i not the string "$i"...Anyone know how to do this? Link to comment https://forums.phpfreaks.com/topic/27036-variables-within-array-keys/ Share on other sites More sharing options...
Destruction Posted November 12, 2006 Share Posted November 12, 2006 $_POST['answer_'.$i]Dest Link to comment https://forums.phpfreaks.com/topic/27036-variables-within-array-keys/#findComment-123628 Share on other sites More sharing options...
trq Posted November 12, 2006 Share Posted November 12, 2006 [code=php:0]$_POST["answer_$i"][/code] Link to comment https://forums.phpfreaks.com/topic/27036-variables-within-array-keys/#findComment-123629 Share on other sites More sharing options...
corbin Posted November 13, 2006 Author Share Posted November 13, 2006 Ooooo, thanks... Brain fart or something... Link to comment https://forums.phpfreaks.com/topic/27036-variables-within-array-keys/#findComment-123718 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.