04 2023 档案

摘要:首先我们观察上图,第二代身份证包括18位,其中7到14位代表这位公民的出生年月日,我们可以利用left()、right()函数嵌套使用获取出生年月。 方法一: 先获取身份证字符串右侧的12位,再从获取的字符串中获取左侧8位;=LEFT(RIGHT(C2,12),8) 方法二: 先获取身份证字符串左侧 阅读全文
posted @ 2023-04-30 23:34 paoPaoLong_liu 阅读(330) 评论(0) 推荐(0) 编辑
摘要:1 <?php 2 header("Content-type: text/html; charset=utf-8"); 3 //设置中国时区 4 date_default_timezone_set('PRC'); 5 6 require_once("./Smarty/libs/Smarty.clas 阅读全文
posted @ 2023-04-26 20:57 paoPaoLong_liu 阅读(15) 评论(0) 推荐(0) 编辑
摘要:1 <?php 2 header("Content-type: text/html; charset=utf-8"); 3 //设置中国时区 4 date_default_timezone_set('PRC'); 5 6 $dsn="mysql:host=127.0.0.1;port=3306;db 阅读全文
posted @ 2023-04-18 21:55 paoPaoLong_liu 阅读(17) 评论(0) 推荐(0) 编辑
摘要:1 <?php 2 $name = "马大炮"; 3 $age = 48; 4 $str = file_get_contents("./view.html"); 5 $str = str_replace('{','<?php echo ',$str); 6 $str = str_replace('} 阅读全文
posted @ 2023-04-18 18:25 paoPaoLong_liu 阅读(23) 评论(0) 推荐(0) 编辑
摘要:<?php class Car { var $color; function Car($color="red") { $this->color = $color; } function what_color() { return $this->color; } } function print_va 阅读全文
posted @ 2023-04-17 16:04 paoPaoLong_liu 阅读(91) 评论(0) 推荐(0) 编辑
摘要:<?php header("Content-type: text/html; charset=utf-8"); //设置中国时区 date_default_timezone_set('PRC'); $dsn="mysql:host=127.0.0.1;port=3306;dbname=test;ch 阅读全文
posted @ 2023-04-15 22:55 paoPaoLong_liu 阅读(19) 评论(0) 推荐(0) 编辑
摘要:<?php header("Content-type: text/html; charset=utf-8"); //设置中国时区 date_default_timezone_set('PRC'); $dsn="mysql:host=127.0.0.1;port=3306;dbname=test;ch 阅读全文
posted @ 2023-04-15 19:40 paoPaoLong_liu 阅读(16) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示