You should always close a file in PHP using the fclose() function after you're done with it.
- TRUE
- FALSE
- nan
- nan
In PHP, it is good practice to always close a file using the fclose() function after you have finished working with it. This ensures that the file resources are released, memory is freed up, and it helps prevent resource leaks.
Loading...
Related Quiz
- You can define a class in PHP using the class keyword.
- What is the difference between sort() and rsort() in PHP?
- How many expressions does a PHP for loop contain and what are they used for?
- The ______ data type in PHP is used to store a number with a decimal point.
- What is the purpose of the fclose() function in PHP?