I'm trying to produce 25 variables from $day1Txt through to $day2Txt.
How do I turn the '1' in the variable $day1Txt
into the variable $i
?
for ($i = 1; $i < 25; $i++) {
$day1Txt = echo call_user_func('Day_'.$i.'_Offer', 'EMAIL_OFFER');
}
I've made an attempt myself but it white screens...
${'day'.$i.'Txt'} = echo call_user_func('Day_'.$i.'_Offer', 'EMAIL_OFFER');