#str_pad   补位
                $sn = 'SN'.str_pad($goods_id, 8, '0', STR_PAD_LEFT );
		$this->where('id='.$goods_id)->save(array(
			'goods_sn'=>$sn,
		));

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-06
  • 2021-08-06
  • 2021-10-18
  • 2021-12-30
  • 2021-08-10
相关资源
相似解决方案