This is my code. I am using the strtotime
function for find the next day is saturday. But my code result is always run else
part. Where I am wrong.
$current_date = date('Y-m-d');
$date = strtotime($current_date);
$weekDay = date('w', strtotime('+1 day',$date));
if(($weekDay == 'Saturday'))
echo "Tomorrow is Saturday.";
else
echo "Tomorrow is not Saturday.";