php 自动更新版权
自动更新版权 [代码片段(16行)]
function autoUpdatingCopyright($startYear){ // given start year (e.g. 2004) $startYear = intval($startYear); // current year (e.g. 2007) $year = intval(date(\'Y\')); // is the current year greater than the // given start year? if ($year > $startYear) return $startYear .\'-\'. $year; else return $startYear; } //该片段来自于http://outofmemory.cn
精彩图集
精彩文章