更多>
最新下载
24小时阅读排行榜
- 1 php声明一个数组步骤_php数组定义基本语法详解【解析】
- 2 javascript中的WebSocket是什么_如何实现实时通信
- 3 Javascript对象如何创建_原型和类有什么区别?
- 4 如何添加html文档_创建并添加新的HTML文档到项目【创建】
- 5 javascript的本地存储有哪些方案_localStorage和sessionStorage有何区别
- 6 html5如何引入图标_HTML5引入图标库与自定义图标方法【图标引入】
- 7 html5如何绘制爱心_HTML5绘制爱心图形与Canvas技巧【教程】
- 8 mysql集群如何进行扩容_mysql水平扩展方法
- 9 SQL数据字典如何维护_提升团队协作效率方法【教程】
- 10 Python成员运算符用法详解_in与notin实战解析【技巧】
- 11 javascript的性能如何优化_有哪些最佳实践?
- 12 如何用Python开发网络监听工具_网络数据捕获核心逻辑【技巧】
- 13 如何在mysql中使用having条件_mysql having条件用法
- 14 LinuxShell脚本如何复用_函数库设计实践【指导】
- 15 SQL宽表设计利弊分析_查询性能与维护成本权衡【教学】
更多>
最新教程
-
- Node.js 教程
- 13941 2025-08-28
-
- CSS3 教程
- 1540176 2025-08-27
-
- Rust 教程
- 21641 2025-08-27
-
- Vue 教程
- 24183 2025-08-22
-
- PostgreSQL 教程
- 20930 2025-08-21
-
- Git 教程
- 8233 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
