复制代码 代码如下:function getQuarterByMonth($date){ $month = substr($date,-2); $Q = ceil($month/3); return $Q;}?>