PHP Check Particular Day
<p>I need to change shipping day to next Tuesday if the day is Friday.Here is my code.</p>

<pre><code>$tomorrow = mktime(0,0,0,date("m"),date("d")+$tt+1,date("Y"));
$duedate = date("d - M D", $tomorrow);
$str = substr($duedate, 9, 11);
$fri='Fri';
$sat='Sat';
if(strcmp($str,$fri)==0)
{
 $tomorrow = mktime(0,0,0,date("m"),date("d")+4,date("Y"));
 $duedate = date("d - M D", $tomorrow);
}
</code></pre>

<p>But i think the if loop is not checking friday correctly.So adding 4 to <code>$tommorrow</code> is also not working.Any pointers?</p>
