简单教程
提交运行
代码编辑器:
<?php $number = 9; $str = "Beijing"; $txt = sprintf("There are %u million bicycles in %s.",$number,$str); echo $txt;
运行结果: