php 根据月份返回季节

180it 2021-02-28 PM 1360℃ 0条
//四季*月份
    function siji($y){
        switch ($y){
            case "1":
            $sj="冬";
            break;
            case "2":
            $sj="冬";
            break;
            case "3":
            $sj="春";
            break;
            case "4":
            $sj="春";
            break;
            case "5":
            $sj="春";
            break;
            case "6":
            $sj="夏";
            break;
            case "7":
            $sj="夏";
            break;
            case "8":
            $sj="夏";
            break;
            case "9":
            $sj="秋";
            break;
            case "10":
            $sj="秋";
            break;
            case "11":
            $sj="秋";
            break;
            case "12":
            $sj="冬";
            break;
            }
            return $sj;
    }
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

php 根据月份返回季节