With no decimals: %1$number"; $txt = vsprintf($str,array($number)); echo $txt;