php datediff获取天数,php实现的DateDiff和DateAdd时间函数代码分享_php技巧
扩展php中的时间函数DateDiff和DateAddfunction DateDiff($part, $begin, $end){$diff = strtotime($end) - strtotime($begin);switch($part){case "y": $retval = bcdiv($diff, (60 * 60 * 24 * 365)); break;case "m": $ret...