PHP » I/O » fputs()

int fputs(int file, string data [, int length])
The file handle of the file to write to.
String containing the data that should be written.
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: