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

When would a bias most likely be harmful? A. When it accuses a group of beliefs or actions that may not apply to every member B. When it is based on a widely ac
Why do stories matter? PLEASE RIGHT A COUPLE SENTENCES ON WHY STORIES MATTER!I WILL GIVE BRAINLEST!
23 Mrs. Clarke ran a race. She ran 5 miles at a speed of 10 minutes per mile. How long did it take her to run the race? *
The two objects shown in the beakers below are exactly the same size (same volume). Given liquid in the beakers is water (density = 1 g/mL), what is the densit
PLS ANSWER!!! Solve (−5) ⋅ (−3).
Why did the North have an advantage over the South during the Civil War and were able to win the war?
what is the mood of paragraph 68 of lemon brown.​
Which Field of study is quantifiable makes testable predictions and uses controlled conditions for experimental procedures
The length of a rectangle is 4 cm longer than its width. If the perimeter of the rectangle is 44 cm, find its area.​
2(3x – 4)= -2(x - 2