复制代码 代码如下:
function getQuarterByMonth($date){
$month = substr($date,-2);
$Q = ceil($month/3);
return $Q;
}
?>
http://www.bkjia.com/PHPjc/747679.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/747679.htmlTechArticle复制代码 代码如下: ?php function getQuarterByMonth($date){ $month = substr($date,-2); $Q = ceil($month/3); return $Q; } ?...