Which function is specifically designed to write a string to a text file?
[4776,4777]
Correct:
--> fwrite()
--> fputs()
Either fwrite() or fputs() would work equally well here, since the latter is nothing more than
a stub for the former. In PHP, there is no difference between writing binary data and a string.