$str=intval('123456')

number_format($str);

这个函数可以使用千位分隔符格式化数据

函数输出结果

123,456

 

相关文章:

  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-12-10
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-11-25
相关资源
相似解决方案