<!DOCTYPE html>
<html>
<body>
<?php
$number = 123;
vprintf("有两位小数:%1\$.2f<br>没有小数:%1\$u",array($number));
?>
</body>
</html>