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

What is the simplest form for the product 3/5 •25/36 is?
If4 times the reciprocal of a number is 3 more than 5/2 times the reciprocal of that number find the number Show your work
what is the difference between dividing 16 by 2 and finding the square root of 16
What is the simplest form for the product 3/5 •25/36 is?
What is the simplest form for the product 3/5 •25/36 is?
If4 times the reciprocal of a number is 3 more than 5/2 times the reciprocal of that number find the number Show your work
If4 times the reciprocal of a number is 3 more than 5/2 times the reciprocal of that number find the number Show your work
The equation s x  2 5 can be used to estimate the speed, s, of a car in miles per hour, given the length in feet, x, of the tire marks it leaves on the ground.
The equation s x  2 5 can be used to estimate the speed, s, of a car in miles per hour, given the length in feet, x, of the tire marks it leaves on the ground.
what is 4 over 9 minus 1 over 12 equal simplified?