Here's the logic, laid out: $days_per_week = 7; $weekdays = array_flip(array('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat')); $day_wanted = 'mon'; $days_forward = ( $weekdays$day_wanted - $date->get(Zend_Date::WEEKDAY_DIGIT) + $days_per_week ) % $days_per_week; $date->addDay($days_forward) That works nicely for any $day_wanted.
Here's the logic, laid out: $days_per_week = 7; $weekdays = array_flip(array('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat')); $day_wanted = 'mon'; $days_forward = ( $weekdays$day_wanted - $date->get(Zend_Date::WEEKDAY_DIGIT) + $days_per_week ) % $days_per_week; $date->addDay($days_forward); That works nicely for any $day_wanted.
That should be 7 days forward, instead of 0. How can this be achieved? – Andrew Dec 19 '09 at 20:22 The % (mod function) keeps $days_forward between 0 and 6 inclusive.
If you want to jump ahead 7 days, then I'd do it after the main calculation this way: if ($days_forward == 0) $days_forward = $days_per_week. – Derek Illchuk Dec 19 '09 at 22:13.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.