Copy code The code is as follows:
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.htmlTechArticleCopy the code as follows: ?php function getQuarterByMonth($date){ $month = substr($date,-2 ); $Q = ceil($month/3); return $Q; } ?...