금요일이 금요일 인 경우 배송일을 다음 화요일로 변경해야합니다. 여기 내 코드가 있습니다.PHP 검사 특정 일
$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);
}
는하지만 난 루프가 확인되지 않은 경우 금요일 correctly.So가 $tommorrow
-4도하지 working.Any 포인터입니다 추가 생각하십니까?