printf - 语法

int printf ( string $format [, mixed $args [, mixed $... ]] )

它返回输出一个格式化的字符串

Sr.No 参数 & 描述
1

format

它包含有关字符串格式的信息

printf - 返回值

它返回输出字符串的长度。

printf - 示例

<?php
   printf("Tutorials point simply easy learning");
?>

这将产生以下输出-

Tutorials point simply easy learning

参考链接

https://www.learnfk.com/php/php-function-printf.html