04 2023 档案
摘要:首先我们观察上图,第二代身份证包括18位,其中7到14位代表这位公民的出生年月日,我们可以利用left()、right()函数嵌套使用获取出生年月。 方法一: 先获取身份证字符串右侧的12位,再从获取的字符串中获取左侧8位;=LEFT(RIGHT(C2,12),8) 方法二: 先获取身份证字符串左侧
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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('}
阅读全文
摘要:<?php class Car { var $color; function Car($color="red") { $this->color = $color; } function what_color() { return $this->color; } } function print_va
阅读全文
摘要:<?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
阅读全文
摘要:<?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
阅读全文