LOADING STUFF...

PHP字符串函数fprintf()的用法

技术教程8小时前发布 北陌
12 0 0

PHP字符串函数fprintf()的用法

fprintf

(PHP 5)

fprintf — 将格式化后的字符串写入到流

说明

int fprintf
( resource $handle
, string $format
[, mixed $args
[, mixed $…
]] )

写入一个根据 format 格式化后的字符串到
由 handle 句柄打开的流中。

参数

handle

文件系统指针,是典型地由
fopen() 创建的 resource(资源)。

format

参见 sprintf() 中对
format 的描述。

args

返回值

返回写入的字符串长度。

范例

Example #1 fprintf(): zero-padded integers

if

© 版权声明

相关文章

暂无评论

暂无评论...