时间:2023-03-07 09:33:39 | 栏目:PHP代码 | 点击:次
如下所示:
<strong><span style="font-size:18px;">/*编号=年份后两位+月份+id四位数*/ $id = $this->student_model->save(0, $data); $sn = date('Y', time()); $sn = substr($sn, -2); $sn.= date('m', time()); $sn.=sprintf("%04d", $id);</span></strong>
【结果预览】例:14120001