A php function for determining the trunk, Zodiac, and Constellation & lt ;? Php/*** determine the trunk, Zodiac, and Constellation * @ paramstring $ type return type: array. * @ paramdate $ birth = timestamp, other time format * @ authorbottle [email = hhyisw @ 16 a php function for determining the trunk, Zodiac, and Constellation
= $ Zone [0] | (100 * $ m + $ d) <$ zone [1]) {$ I = 0;} else {for ($ I = 1; $ I <12; $ I ++) {if (100 * $ m + $ d)> = $ zone [$ I] & (100 * $ m + $ d) <$ zone [$ I + 1]) break ;}} $ result ['xz '] = $ xzdict [$ I]. 'seat '; $ gzdict = array ('A',' B ', 'Bing', 'ding', 'pente', 'Ji', 'geng ', 'Sin', 'hire', 'dece'), array ('sub', 'Ugly ', 'yin', 'Mao ', 'Chen', 'Si ', 'Wu ', 'Wei', 'Shen ', 'you', 'haid'); $ I = $ y-1900 + 36; $ result ['gz '] = $ gzdict [0] [($ I % 10)]. $ gzdict [1] [($ I % 12)]; $ sxdict = array ('Rat ', 'ox', 'Tiger ', 'rabbit', 'Dragon ', 'Snake ', 'ma', 'goat', 'Monkey ', 'Chicken', 'dog ', 'Pig '); $ result ['sx '] = $ sxdict [($ y-4) % 12)]; return $ result ;}?>
?