价位是这样的,定长12位,最小值是1分,例如5.1元转换过来就是000000000510

WBOY
Release: 2016-06-13 11:54:54
Original
830 people have browsed it

价格是这样的,定长12位,最小值是1分,例如5.1元转换过来就是000000000510
求PHP实现,要求效率高方法
------解决方案--------------------
echo str_pad($money*100,12,"0",STR_PAD_LEFT);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template