Ask Question
7 March, 21:19

Which of the following instructions will write the contents of the variable $name to the file referenced by $someFile?

fgets ($someFile, $name);

list ($someFile, $name);

fopen ($someFile, $name);

fputs ($someFile, $name);

+1
Answers (1)
  1. 7 March, 23:39
    0
    D. fputs ($someFile, $name);

    Explanation:

    The instruction is not right as it is in the answer, because the content inside $name will be placed into the file referenced by $someFile. The correct structure is like this:

    fputs ($name, $someFile);

    where:

    $name is the variable with the content to be inserted. $someFile is the file where the information is going to be saved.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following instructions will write the contents of the variable $name to the file referenced by $someFile? fgets ($someFile, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers