PHP Source:
<!DOCTYPE html>
<html>
<body>

<?php
$number = 123;
vprintf("With 2 decimals: %1\$.2f
<br>With no decimals: %1\$u"
,array($number));
?>


</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy