Func string sprintf:修订历史

本页内容
上一节: Func_string_soundex 下一节: Func_string_sscanf

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

    2022年8月17日 (星期三)

    • 当前之前 22:292022年8月17日 (三) 22:29Neo 讨论 贡献 5,443字节 +5,443 创建页面,内容为“{{DISPLAYTITLE:sprintf()}}50 = PHP sprintf() 函数 = PHP String 参考手册 把百分号(%)符号替换成一个作为参数进行传递的变量: <sample title="" desc="" lang="php" hererun="1">example_start <?php $number = 9; $str = "XiaoBai.Wang"; $txt = sprintf("%s 每天有 %u 万人在访问!", $str, $number); echo $txt; ?> example_end</sample> 执行输出结果如下: <sample title="" desc=…”
上一节: Func_string_soundex 下一节: Func_string_sscanf