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

scientists believe that the collapse of many ancient civilizations may have been caused by
What is a round worm
when and why did wright brothers die?
PLEASE HELP ASAP!!! I AM SOO STUCK ON THIS QUESTION?! HELLLPPPPP!!!!!!!
An electric motor uses what type of current? A. direct B. alternating
what multiplies to -180 and adds to 24?
What is half of the fraction pi over 4
why are the offspring of flowering plants genetically different from the parent plants
Which of Alonzo Herndon’s accomplishments MOST LIKELY had the greatest impact on his community? A)He shared his wealth with community organizations such as orph
As the European powers grew more industrialized, their colonies became very important as sources of A)slave labor. B)raw materials. C)new inventions. D)military