You are currently viewing archive for June 2008

06/25: PHPで日付の比較

Category: General | Posted by: ayumi
mktimeを使います。

$day1 = '2008/2/1';
$day2 = '2008/2/15';

if(mktime($start)>mktime($end)){$end = "error";}

Search

Navigation

<   2008-06   >
1234567
891011121314
15161718192021
22232425262728
2930