更多>
最新下载
24小时阅读排行榜
- 1 EF Core怎么更新数据库 EF Core更新数据库(Update-Database)教程
- 2 javascript尾调用优化是什么_它如何提升递归性能
- 3 Laravel DB事务怎么使用_Laravel数据库事务回滚操作
- 4 如何用javascript生成PDF_有哪些库可用?
- 5 如何使用Golang开发配置管理工具_读取和修改配置文件
- 6 如何使用Golang实现安全计数器_Golang原子操作与并发安全说明
- 7 css链接hover时想做背景轻微扩散效果怎么实现_通过::before制作扩散背景层
- 8 Blazor 怎么实现表单验证
- 9 C#如何将XElement转换为XmlElement
- 10 如何使用Golang实现HTTP客户端请求_发送GET和POST请求
- 11 c++如何实现一个线程安全的单例模式 Meyers' Singleton详解【设计模式】
- 12 c++的this指针是什么 在成员函数中如何使用【面向对象】
- 13 C++的线程消毒剂是什么_使用ThreadSanitizer (TSan)检测C++数据竞争问题
- 14 javascript如何实现机器学习_TensorFlow.js能运行哪些模型?
- 15 Blazor 怎么在页面之间传递数据
更多>
最新教程
-
- Node.js 教程
- 14074 2025-08-28
-
- CSS3 教程
- 1540562 2025-08-27
-
- Rust 教程
- 21772 2025-08-27
-
- Vue 教程
- 24294 2025-08-22
-
- PostgreSQL 教程
- 21017 2025-08-21
-
- Git 教程
- 8281 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
