深入浅析php中sprintf与printf函数的用法及区别 PHPsprintf()函数把百分号(%)符号替换成一个作为参数进行传递的变量:<?php$number=2;$str php_printf_sprintf