fwrite

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

説明

fwrite() writes the contents of string to the file stream pointed to by handle.

戻り値

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