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

Which personal pronoun correctly completes the sentence? Which is its use? Tell Ralph and ............ another story about your trip Montana. a. She; indirect o
Mitigation strategies adopted by government in nepal earthquake
what are the challenges of icarus
Mr.Gorman spent $65 on the following art supplies . 5 pads of colored paper for $2.50 each .6 packs of markers for $5.75 each . Some jars of paint for $4.50 e
How did John D. Rockefeller horizontally integrate his monopoly in 1880?
Maria is concerned because she has been exposed to a small amount of radiation during an X-ray. What is her doctor most likely to tell her?
The spindle apparatus of animal cells centers on a cell structure called the _____.
If your heart is not strong enough or efficient enough, it is difficult to stretch lift weights breathe perspire
What impaxts have monotheistic religions and their writings had on today's society?
If AB+BC = 24 and AB = 10, then 10 + BC= 24" is an example of the ?