更多>
最新下载
24小时阅读排行榜
- 1 .dtsx文件是什么 如何理解SSIS包的XML结构
- 2 javascript如何操作DOM与处理浏览器事件【教程】
- 3 css元素阴影平滑过渡如何实现_利用transition-box-shadow实现
- 4 css颜色需要半透明但不影响子元素怎么办_使用rgba颜色替代opacity
- 5 如何使用Golang实现TCP客户端_Golang net Dial与Read方法实践
- 6 php数据统计图表能导出图片吗_php用jpgraph导出图表法【技巧】
- 7 mysql中的GRANT语句与权限授予方法
- 8 Open Policy Agent (OPA) 如何为XML上传接口定义访问策略
- 9 mysql备份和恢复有什么区别_mysql数据安全管理解析
- 10 css 想让网格容器内容居中怎么办_justify-content center align-content center
- 11 C# 图片压缩方法 C#如何实现图片大小压缩
- 12 php二维数组转一维生成序列_php二维降维生成连续序号【方法】
- 13 css border 不显示是什么原因_边框属性常见问题排查
- 14 什么是AJAX以及如何在javascript中实现_怎样与服务器进行异步通信【教程】
- 15 html5播放rtsp怎么投屏_html5rtsp投屏电视方法【扩展】
更多>
最新教程
-
- Node.js 教程
- 16309 2025-08-28
-
- CSS3 教程
- 1546999 2025-08-27
-
- Rust 教程
- 23432 2025-08-27
-
- Vue 教程
- 25871 2025-08-22
-
- PostgreSQL 教程
- 22370 2025-08-21
-
- Git 教程
- 9321 2025-08-21
下载首页 / 类库下载 / 其它类库
class IdcardAction extends Action{
function get_xingzuo($cid) {
if (!$this->isIdCard($cid)) return '';
$bir = substr($cid,10,4);
$month = (int)substr($bir,0,2);
$day = (int)substr($bir,2);
$strValue = '';
if (($month == 1 && $day >= 20) || ($month == 2 && $day <= 18)) {
$strValue = "水瓶座";
} else if (($month == 2 && $day >= 19) || ($month == 3 && $day <= 20)) {
$strValue = "双鱼座";
} else if (($month == 3 && $day > 20) || ($month == 4 && $day <= 19)) {
$strValue = "白羊座";
} else if (($month == 4 && $day >= 20) || ($month == 5 && $day <= 20)) {
$strValue = "金牛座";
} else if (($month == 5 && $day >= 21) || ($month == 6 && $day <= 21)) {
$strValue = "双子座";
} else if (($month == 6 && $day > 21) || ($month == 7 && $day <= 22)) {
$strValue = "巨蟹座";
} else if (($month == 7 && $day > 22) || ($month == 8 && $day <= 22)) {
$strValue = "狮子座";
} else if (($month == 8 && $day >= 23) || ($month == 9 && $day <= 22)) {
$strValue = "处女座";
} else if (($month == 9 && $day >= 23) || ($month == 10 && $day <= 23)) {
$strValue = "天秤座";
} else if (($month == 10 && $day > 23) || ($month == 11 && $day <= 22)) {
$strValue = "天蝎座";
} else if (($month == 11 && $day > 22) || ($month == 12 && $day <= 21)) {
$strValue = "射手座";
} else if (($month == 12 && $day > 21) || ($month == 1 && $day <= 19)) {
$strValue = "魔羯座";
}
return $strValue;
}PHP根据身份证号,自动获取对应的星座函数,然后自动返回对应的星座,自动返回性别,判断是否成年
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
