Which one of the following function outputs the contents of a string variable to the specified resource?
A
filewrite()
B
fwrite()
C
filewrites()
D
fwrites()
Correct Answer: fwrite()
The function fwrite() writes to an open file. This will stop at the end of the file or when it reaches the specified length, whichever comes first.