sprintf():把%替换成一个作为参数进行传递的变量
<?php $number = 2; $str = "Shanghai"; $txt = sprintf("There are %u million cars in %s.",$number,$str); echo $txt; ?>
posted on 2018-01-30 14:19 薇薇123456 阅读(94) 评论(0) 编辑 收藏 举报