FOOD2008. 11. 17. 15:19
오랜만에 찾아간 봉룡불고기~
둘이서 3인분 & 공기밥...
삼겹살 가격이 소고기값 따라 가는듯 ㅠㅠ

Posted by webfeel
2008. 6. 23. 11:06

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

JOB/PHP2008. 6. 20. 15:30

$date_1 = "2008-05-29"; //시작일
$date_2 = "2008-06-10"; //종료일

$d1_data = explode("-",$date_1);
$d2_data = explode("-",$date_2);

$data1_str = " " . "$d1_data[1]" . "/" . "$d1_data[2]" . "/" . "$d1_data[0]";
$data2_str = " " . "$d2_data[1]" . "/" . "$d2_data[2]" . "/" . "$d2_data[0]";

$d1_strtotime = strtotime($data1_str);
$d2_strtotime = strtotime($data2_str);



while($d1_strtotime != $d2_strtotime){
                                    
$d1_strtotime = strtotime("+1 day",$d1_strtotime);
                                        
print $sing=date("Y-m-d",$d1_strtotime) . "<br>";

}

//RESULT
2008-05-30
2008-05-31
2008-06-01
2008-06-02
2008-06-03
2008-06-04
2008-06-05
2008-06-06
2008-06-07
2008-06-08
2008-06-09
2008-06-10


===============================================================================

$date_1 = "2008-05-29";
$date_2 = "2008-06-02";

$d1_data = explode("-",$date_1);
$d2_data = explode("-",$date_2);

$data1_str = " " . "$d1_data[1]" . "/" . "$d1_data[2]" . "/" . "$d1_data[0]";
$data2_str = " " . "$d2_data[1]" . "/" . "$d2_data[2]" . "/" . "$d2_data[0]";

$d1_strtotime = strtotime($data1_str);
$d2_strtotime = strtotime($data2_str);

$d1_strtotime = strtotime("-1 day",$d1_strtotime);

 

while($d1_strtotime != $d2_strtotime){
                                    
 $d1_strtotime = strtotime("+1 day",$d1_strtotime);
                                        
echo $sing=date("Y-m-d",$d1_strtotime) . "<br>";


}
//RESULT
2008-05-29
2008-05-30
2008-05-31
2008-06-01
2008-06-02

Posted by webfeel