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

2.25(4x-4)=-2+10x+12
What colors are the organelles in a animal cell.? Thx
Write a word phrase for each algebraic expression 13p+0.1
half of 16 as an algebraic expression
explain how to use a number line to find the opposites of the intergers 3 units away from -7
Judaism has influence what two religions?
An egg is released from an ovary about once per month in a process called
Write 4° F  below zero as an integer.
describe and correct the error in solving this equation -2(7-y)+4=-4 -14-2y+4=-4 -10-2y=-4 -2y=6 y=-3 please show work I don't know how to get the answer
14 gal/sec = ____ qt/min ? please show work(: