mb_substr( $str, $start, $length, $encoding )

$str,需要截断的字符串
$start,截断开始处,起始处为0
$length,要截取的字数
$encoding,网页编码,如utf-8,GB2312,GBK 

==================================

mb_strlen( $str, $encoding )

$str,要计算长度的字符串
$encoding,网页编码,如utf-8,GB2312,GBK 

 

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2022-01-13
  • 2021-11-13
  • 2021-11-13
  • 2021-05-27
  • 2021-11-09
猜你喜欢
  • 2021-11-09
  • 2021-08-20
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案