摘要: <?php header("Content-type: text/html; charset=utf-8"); //设置中国时区 date_default_timezone_set('PRC'); require_once("./Smarty/libs/Smarty.class.php"); $sm 阅读全文
posted @ 2023-05-03 19:19 paoPaoLong_liu 阅读(33) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-05-03 17:29 paoPaoLong_liu 阅读(22) 评论(0) 推荐(0)
摘要: <?php header("Content-type: text/html; charset=utf-8"); //设置中国时区 date_default_timezone_set('PRC'); require_once("./Smarty/libs/Smarty.class.php"); $sm 阅读全文
posted @ 2023-05-03 11:13 paoPaoLong_liu 阅读(47) 评论(0) 推荐(0)
摘要: 首先我们观察上图,第二代身份证包括18位,其中7到14位代表这位公民的出生年月日,我们可以利用left()、right()函数嵌套使用获取出生年月。 方法一: 先获取身份证字符串右侧的12位,再从获取的字符串中获取左侧8位;=LEFT(RIGHT(C2,12),8) 方法二: 先获取身份证字符串左侧 阅读全文
posted @ 2023-04-30 23:34 paoPaoLong_liu 阅读(379) 评论(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 阅读(27) 评论(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 阅读(26) 评论(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 阅读(30) 评论(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 阅读(96) 评论(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 阅读(38) 评论(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 阅读(18) 评论(0) 推荐(0)