I have 24 days which have unique messages each day. How could i write the following IF statements in some sort of loop to make it more efficient: -
<?
if ($day == '1') {
$offerTxt = $day1Txt;
} else if ($day == '2') {
$offerTxt = $day2Txt;
} else if ($day == '3') {
$offerTxt = $day3Txt;
} else if ($day == '4') {
$offerTxt = $day4Txt;
} else if ($day == '5') {
$offerTxt = $day5Txt;
} else if ($day == '6') {
$offerTxt = $day6Txt;
}
?>