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

Find the length of side x in simplest radical form with a rational denominator. 459 4 95 Answer: 2 = Submit Answer HELP HELP HELP HELP PLSSSSSSS
Which of the following equations is modeled by the graph? A) a = 50t B) a = 5t C) a = 50 + t D) a = 10t
trong một thùng có chứa 3 bi đỏ 4 bi đen
which of these figures has rotational symmetry
what is it about American culture that allows homelessness to occur??​
What are factorials? And how do you do them in fractions like 4!5! ——- How do you do that question? And why do you leave 6! The 5! without anything,
The perimeter of a rectangular painting is 320 cm. If the length of the painting is 96 cm, what is its length
How to prepare and draw a corresponding flowchart to compute the sum and product of all prime numbers between 1 and 50
Instructions: Find the measure of the indicated angle to the nearest degree. 19 ? 8 =
which shape is both a parallelogoram and a rhombus