<?php
    header("content-type:text/html;charset=utf-8");
    mb_internal_encoding('utf-8');//设置所有mb开头的函数内部编码
    $a = '2013年06月06日';
    $a = mb_substr($a,0,mb_strlen($a)-1);
    echo $a ;
        
?>

结果2013年06月06

 

相关文章:

  • 2021-11-30
  • 2021-05-31
  • 2021-07-22
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2021-07-06
  • 2022-12-23
  • 2022-02-09
  • 2021-08-20
  • 2022-12-23
相关资源
相似解决方案