(PHP 4, PHP 5, PHP 7)
Binary-safe file write
int fwrite ( resource $handle, string $string [, int $length ] )
fwrite() writes the contents of string to the file stream pointed to by handle.
Parameters:
handle
A file system pointer resource that is typically created using fopen().
string
The string that is to be written.