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

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

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