지긋지긋한 PHP 날짜 계산

프로그래밍/PHP 2011. 5. 24. 17:10
//32일 전
$lastMonth = strtotime("-32 DAY");

//한달전
$lastMonth = strtotime("-1 MONTH");

//'어제'
$yesterday = date('Ymd', strtotime("-1 DAY"));
posted by lazymong