Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Regex
- function
- 무료다운로드쿠폰
- HTML
- variables
- date
- 경영
- Arrays
- php
- Linux
- jquery
- JavaScript
- 웹하드추천
- JSON
- post
- Forms
- composer-php
- 웹하드순위
- file-upload
- Session
- string
- Ajax
- Apache
- Laravel
- 전략
- curl
- OOP
- MySQL
- UTF-8
Archives
- Today
- Total
목록compare (1)
개발! 딱 깔끔하고 센스있게!
PHP 날짜와 문자열 비교
PHP 프로그램을 개발하고 있습니다. 나는 날짜 변수와 문자열 변수를 비교해야 합니다.나는 strcmp 해봤는데 소용이 없다...건의감사합니다. 대답 날짜를 비교하는 가장 좋은 방법은 시간 스탬프입니다: $string = '11/05/2016';//string variable $date = date('Y-m-d',time());//date variable $time1 = strtotime($string); $time2 = strtotime($date); if($time1>$time2){ //do this } else{ //do this } 도움이 됐으면 좋겠어요.
개발 스크랩 메모/PHP
2020. 12. 29. 02:40