function xingZuo($month, $day){
if ($month < 1 || $month > 12 || $day < 1 || $day > 31)
die('输入正确的年月');
$constellations = [
[ "20" => "水瓶座|1.20-2.18|1"],
[ "19" => "双鱼座|2.19-3.20|2"],
[ "21" => "白羊座|3.21-4.19|3"],
[ "20" => "金牛座|4.20-5.20|4"],
[ "21" => "双子座|5.21-6.21|5"],
[ "22" => "巨蟹座|6.22-7.22|6"],
[ "23" => "狮子座|7.23-8.22|7"],
[ "23" => "处女座|8.23-9.22|8"],
[ "23" => "天秤座|9.23-10.23|9"],
[ "24" => "天蝎座|10.24-11.22|10"],
[ "23" => "射手座|11.23-12.21|11"],
[ "22" => "摩羯座|12.22-1.19|12"]
];
list($constellation_start, $constellation_name) = each($constellations[(int)$month-1]);
if ($day < $constellation_start){
list($constellation_start, $constellation_name) = each($constellations[($month -2 < 0) ? $month = 11: $month -= 2]);
}
$constellation = $constellation_name;
return $constellation;
}