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

witch one came 1st . . . chicken or the egg . . .
I need help please.
Explain the main methods of fighting employed by the samurai.
(Very easy) Find the surface area of this figure
Which cultural barrier can a healthcare professional overcome by enlisting the help of an interpreter? A. personal space B. religious beliefs C. communica
In a circle with an 8-inch radius, a central angle has a measure of 60°. How long is the segment joining the endpoints of the arc cut off by the angle? 8 8√2 8√
A basketball is thrown upwards. The height f(t), in feet, of the basketball at time t, in seconds, is given by the following function: f(t) = −16t2 + 94t + 12 W
<1 and <2 are adjacent angles. a.) True b.) False
Use the equation below to find a, if b = 5 and c = 12 a = 27 - b - c
how much is 5/9 of -3/5 a.1/2 b.-1/3 c.1/7 d.-25/27