유돌이

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

Notice

2008. 12. 20. 22:09 PHP/Java Script/html

[strtotime 함수]

 

1. 형식
- strtotime("+1 day"); 하루후 타임스탬프
- strtotime("-1 day"); 하루전
- strtotime("+1 week"); 일주일후
- strtotime("+1 month"); 한달후
- strtotime("+1 year"); 일년후

 

2. 예제

- date("Y-m-d",strtotime ("+1 day")); => 오늘날짜 부터 하루 뒤의 날짜


'PHP/Java Script/html' 카테고리의 다른 글

세션과 쿠기  (0) 2008.12.20
Confirm Method (확인/취소 창 나태내는 함수)  (0) 2008.12.20
[data type의 char와 varchar의 차이점!]  (0) 2008.12.20
php 함수(explode, trim, substr)  (0) 2008.12.20
str_replace 란?  (0) 2008.12.20
posted by 유돌이