主页
PHP
PHP sprintf() 函数
tryphp_func_string_sprintf3
运行 ❯
×
更改方向
保存代码
更改主题
<?php $number = 123; $txt = sprintf("With 2 decimals: %1\$.2f
With no decimals: %1\$u",$number); echo $txt; ?>