69.7k views
5 votes
Assume somefile.txt contains the following text on two lines: Mary:King Peter:Jones What will the file contain after the following instructions are executed? $someFile =fopen("somefile.txt","w"); fputs($someFile, "Ann:Porter\\"); fputs($someFile, "Dennis:Smith\\"); fclose($someFile);

1 Answer

4 votes

The file will contain:

Mary:King Peter:JonesAnn:Porter

Dennis:Smith

<cursor>

Hope this helps.

User Kaesha
by
7.7k points