PHP » I/O » fputs()

Syntax:
int fputs(int file, string data [, int length])
file
The file handle of the file to write to.
data
String containing the data that should be written.
length
Number of bytes to write.

Alias to fwrite().

This function is an alias to fwrite() and works exactly the same way. If a length is specified, that is the maximum number of bytes written. Otherwise, the whole string will be written. The number of bytes written is returned, or false if an error occurred. See fwrite() for a code example.

See Also: