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

PLEASE HELP Identify the statement that is true. A. Passive transport requires the cell to use energy, while active transport does not. An example of passive
. What factors affect the solar energy Earth receives?
I need help woth making a conclusion and telll me if i need to make any corrections.
During World War ll how did the policy of internment affect people of Japanese descent in the United States
Horses that once frolicked to organ music were now motionless cast iron tethered to rusted poles. How does this sentence help develop the conflict?
Sydney assembles 5/8 of a bracelet in 1/6 of a minute. Henrietta assembles 3/5 of a bracelet in 1/15 of a minute. Who will complete more bracelets per minute?
A real estate agent made $7500 on a $150,000 home sale. What was the percent of her commission?
LN= 6x-5 , LM= x + 7 , and MN= 3x + 20 find MN
In the following figure CB is perpendicular to AB, and CD bisects angle ACB. Find angle DBF
what is the answer to 2x - 3 = 5