输入banner图图片脚本导航/分类

php根据年月获取季度的方法

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