how to find the last monday of the month
<p>I'm not sure how to go about this one. I'm building a calendar in PHP and need users to be able to add a repeating event that follows the following rule:</p>

<p>Last [DOW] of the month (so Last [Mon/Tues/Wed/etc] of the week) </p>

<p>I've got the rule itself stored, I'm just not sure how best to extrapolate the last Mon/Tue/Wed of the month in PHP? I fell like i'm making this more complicated than it needs to be.</p>

<p>Assuming you have variables for <code>$month=4</code>, <code>$dow=3</code> and <code>$year=2011</code> how would I best do this?</p>
