$name="Jimmy";
$open = fopen("first.txt","w");
$write = fwrite($open,$name);
这和有什么区别
$name="Jimmy";
$open = fopen("first.txt","w");
fwrite($open,$name);
变量$write有什么作用?我们为什么要使用它?
来自文档: http://php.net/manual/en/function.fwrite.php
int fwrite ( resource $handle , string $string [, int $length ] (
你的变量$write
将具有:fwrite(( 返回写入的字节数,或错误时返回 FALSE。