$name="Jimmy";
$open = fopen("first.txt","w");
$write = fwrite($open,$name);这和它有什么区别?
$name="Jimmy";
$open = fopen("first.txt","w");
fwrite($open,$name);变量$write做了什么?我们为什么要使用它?
发布于 2016-05-19 01:39:19
来自文档:http://php.net/manual/en/function.fwrite.php
int fwrite (资源$handle,字符串$string,int $length )
您的变量$write将具有: fwrite()返回写入的字节数,如果出错则返回FALSE。
https://stackoverflow.com/questions/37306598
复制相似问题