PHP fwrite() 函数
2016-10-28 21:18:29
•
阅读
打赏
函数原型
/**
* 向打开的文件写入内容(二进制安全)
* @link http://php.net/manual/en/function.fwrite.php
* @param resource $handle 由fopen函数返回的文件指针
* @param string $string 要写入的字符串
* @param int $length [optional] 写入 length 个字节或者写完了 string 后,就停止
* @return int 返回写入的字符数,出现错误时则返回 FALSE
* @since 4.0
* @since 5.0
*/
function fwrite ($handle, $string, $length = null) {}
函数示例
<?php
$file = fopen("a.txt","w");
echo fwrite($file,"Hello World");
fclose($file);
?>
相关推荐
深度学习 -- 损失函数
深度残差网络(Deep Residual Networks (ResNets))
深度学习 -- 激活函数
神经网络训练 -- 调整学习速率
生成对抗网络(GAN)改进与发展
生成对抗网络(GAN)优点与缺点
生成对抗网络(GAN)的训练
生成对抗网络(GAN)基本原理
生成模型与判别模型