php - fwrite() 返回什么类型?

标签 php return fwrite

在php手册上我们可以看到:

fwrite() returns the number of bytes written

好的...但是“写入的字节数”是什么东西?

二进制字符串?二进制数?溪流?诠释?

我有点迷路了。

问候

最佳答案

来自 the manual :

Description

int fwrite ( resource $handle , string $string [, int $length ] )

它在成功时返回一个 int,正如函数名称之前的类型名称所指示的那样。它在出错时返回 FALSE:

fwrite() returns the number of bytes written, or FALSE on error.

关于php - fwrite() 返回什么类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3683975/

相关文章:

php - 使用 Facebook、Google 或 Twitter 登录时如何合并用户帐户?

php - .htaccess 不允许访问 wamp 服务器中的项目目录

PHP MySQL 在下一个可用数字处停止循环

php - 第 2 行的 fatal error : Call to undefined function mysql_connect() in C:\Apache\htdocs\test. php

java - 如何从类内部的函数中获取值?

typescript - 如何从 typescript 中的参数推断或推导返回类型

php - 检查文件指针在 PHP 中是否仍然有效

C flash文件系统使用fwrite生命周期有限制吗?

php - 将文本区域的内容保存到文件时,fwrite 不是 fwriting

java - 在 main 中退出函数