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