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

Which organisms are heterotrophs 
What is the difference between CAL (computer aided learning) and CAD (computer aided design) and please write if you know the answer or I will report you.
A survey of 180 college men was taken to determine participation in various campus activities. Forty-three students were in fraternities, 52 participated in cam
if the coffee is hot then you shouldn't drink it
given y=7/4x-90.6 find y when x=-22
Kenya plans to make a down payment plus monthly payments in order to buy a motorcycle. At one dealer she would pay $2,500 down and $150 each month. At another d
What did Brezhnev Doctrine prevent
Which of the following would you be least likely to see in Antarctica? A. people waiting in line at a supermarket C. the sun staying up after midnight 8. Soma B
where is the capital of usa located
Kenneth films documentaries for a children’s learning channel. Kenneth’s career falls into what pathway of the Arts, AV Technology, and Communication cluster?a.