
Well, you could use an array for what you described. Just make it multidimensional.
-Vic
Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
Useful Links for Guests:
If you are having problems posting in the relevant areas for your software, please see this topic.
while($i < 4 AND ${answer.$i} != '') {
;
}
while ($i < 4) {
$temp = "answer$i";
if ($$temp != '') {
;
}
}
$answer = array();
$answer[] = 'something';
$answer[] = 'something else';
$answer[] = ' and yet';
$answer[] = 'something else again';
foreach ($answer as $index => $value) {
echo "index -- $value<br />";
}
$answer = array('something', 'something else', ' and yet', 'something else again');
foreach ($answer as $index => $value) {
echo "index -- $value<br />";
}
$var = eval("\$answer$i");
Leave a comment: