简单教程
提交运行
代码编辑器:
<?php $number = 123; printf("With 2 decimals: %1$.2f<br>With no decimals: %1$number",$number);
运行结果: