Loading... “甲、乙、丙、丁、戊、己、庚、辛、壬、癸” 称为十天干 “子、丑、寅、卯、辰、巳、午、未、申、酉、戌、亥” 称为十二地支 <!--more--> <?php $天干 = array('甲','乙','丙','丁','戊','己','庚','辛','壬','癸'); $地支 = array('子','丑','寅','卯','辰','巳','午','未','申','酉','戌','亥'); $生肖 = array('鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪'); $年份 = date("Y"); $本年天干 = (($年份-3) % 10)-1; $本年地支 = (($年份-3) % 12)-1; $本年生肖 = (($年份-3) % 12)-1; $返回 = array ( array($天干[$本年天干]), array($地支[$本年地支]), array($生肖[$本年生肖]), array(date("Y-m-d")), array(date("h:i:sa")) ); echo(json_encode($返回)); ![tgdz][1] [1]: https://blog.ccdalao.cn/usr/uploads/2020/05/61859153.jpg 最后修改:2020 年 05 月 31 日 © 禁止转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏