alexishonaker6295 alexishonaker6295
  • 24-12-2019
  • Computers and Technology
contestada

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);

Respuesta :

andonimtz96
andonimtz96 andonimtz96
  • 25-12-2019

Answer:

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.

Answer Link

Otras preguntas

how many ng are there in 4.35 x 10 to the negative 13th power kg
Help!! is it $486? Jose's only debt obligations are a car loan payment of $436 and a credit card payment of $50 every month. What is the minimum amount of money
List two or three pairs of contrasts that describe ancient Egypt
How is the water in a lake different in the summer than it is during the fall?
If there is 64 mi/h what is that in ft/sec
what is the meaning of inhumane farming methods
solve for x: 3x-5=2 A. no solution B. 7/3 C. -1 D. 3
Factor Completely 2(4x-1)^2(x+5)+6(4x-1)^3(x+5)
The investigational new drug (IND) application contains which of the following information? A. Toxicity of the test drug in humans B. Effectiveness
Find the lengths of two segments whose sum is 45 and whose ratio is 2:3