I have the following variables defined:
$today = gmmktime(0,0,0,date('m,d,Y',(gmmktime())));
$text1008 = 'August';
when I say:
echo "This month is " . ${text10 . gmdate('m', $today)};
I get back "This month is August".
But if I define a function:
function saymonth($date) {
${text10 . gmdate('m',$date)};
}
And call it thus:
echo "This month is " . saymonth($today);
All I get is "This month is ".
What am I doing wrong here?