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

Your class sponsors a benefit concert and prices the tickets at $8 each. Dale sells 12 tickets, Andy 16, Morgan 17, and Pat 13. Compute the total revenue brough
Jake and Seth put some money into their money boxes every week. The amount of money (y), in dollars, in their money boxes after a certain amount of time (x), in
two different pairs of decimals whose sum is 14.1
What digit is in the ten millions place in 808,715,710?
True or false:all matter contains thermal energy,even ice
two different pairs of decimals whose sum is 14.1
Which of these statements about the Cuban Missile Crisis is true? a. Fidel Castro''s government had manufactured guided missiles. b. President Kennedy removed n
what goes into 80 and 11
If one pint of water is equivalent to two cups of milk. How many cups of milk did Jasmine and Brenda each drink? How do you know?
What is the expanded form of 430,290,100