Short answer: sprintf('%05.2f', 1); will give the desired result 01.00 Note how %02 ... PHP: How to add leading zeros/zero padding to float via sprintf()?.
確定! 回上一頁