PHP D-day 구하는 php함수

2011. 12. 6. 17:20프로그래밍/PHP

 

date('Ymd',strtotime('-7 day'));

오늘에서 일주일 전 날 구하기 - 이전 + 이후 week year month 등등도 사용가능