definition and usage 定义和用法
|
|
| Parameter 参数 |
Description 描述 |
|---|---|
| file | Required. Specifies the file to write to. If the file does not exist, this function will create one 必要参数。指定写入文件对象。如果该文件不存在,函数将自动创建该文件 |
| data | Required. The data to write to the file. Can be a string, an array or a data stream 必要参数。指定写入文件的数据,可以使一个字符串或者是一个数组 |
| mode | Optional. Specifies how to open/write to the file. Possible values: 可选参数。指定打开/书写文件的方法:
|
| context | Optional. Specifies the context of the file handle. Context is a set of options that can modify the behavior of a stream. 可选参数。指定需要进行处理的文件context[内容]。Context是一组选项,你可以通过它修改你的文本属性 |
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号