PHP get timestamp for a specific day last month
<p>Can I use strtotime() to obtain the timestamp for a given day 'last month' and if not what is the most efficient way of doing this?</p>

<p>This is the kind of thing I want</p>

<pre><code>strtotime("5 last Month");
</code></pre>

<p>instead of </p>

<pre><code>$time_day= 5;
$time_month= date("m");
$time_year= date("Y");

if($time_month&lt;1){
$time_month=12;
$time_year--;
}else{
$time_month--;
}

$date=mktime(0,0,0,$time_month,$time_day,$time_year);
</code></pre>
