I have this, that doesnt work obviously.
$start = $hours->start{$day};
I need to be able the change the $day dynamically. $day can be any day of the week
//For example
$start = $hours->startSunday;
Let me try to be more clear. The following objects contain a certain time
// will echo something like 8:00am
echo $hours->startSunday;
//will echo something like 7:00am
echo $hours->startMonday;
I need to be able to change the day part dynamically with a variable, since it can be any day of the week.
//so something like
echo $hours->start.$day;
but that doesnt work