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

is it possible to intersect a plane at more than one point with a line?
Which of the following statements is most activity regarding the Mayflower compact
What did sir francis drake do to upset the spanish?
List and explain the 5 functions of proteins?
the enzyme catalase will break down hydrogen peroxide into oxygen and water. why doesn't catalase work on protein?please Be specific.
A polynomial function can be written as (x 1)(x 4)(x − 7). what are the x-intercepts of the graph of this function? (1, 0), (4, 0), (7, 0) (−1, 0), (−4, 0), (−7
How did Raphael use atmospheric perspective
Find the range 4.7 6.3 5.4 3.2 4.9
slope is 4/7, (1,3) is on the line. please help me
If a couple invests $5000 in an account that earns a 3% interest rate, how long will they need to invest it to earn $1200 in interest?