Bird
0
0

Which statement about PHP's filectime() function is TRUE?

hard📝 Conceptual Q10 of 15
PHP - File Handling
Which statement about PHP's filectime() function is TRUE?
Afilectime() returns the time the file was last changed (inode change time)
Bfilectime() returns the file creation time on all systems
Cfilectime() returns the last access time of the file
Dfilectime() returns the file size in bytes
Step-by-Step Solution
Solution:
  1. Step 1: Understand filectime() meaning

    filectime() returns the last time the file's metadata or content was changed (inode change time).
  2. Step 2: Clarify common misconceptions

    It does not reliably return creation time on all systems, nor access time or size.
  3. Final Answer:

    filectime() returns last inode change time -> Option A
  4. Quick Check:

    filectime() = last change time, not creation or access [OK]
Quick Trick: filectime() gives last metadata change time [OK]
Common Mistakes:
  • Assuming it returns creation time
  • Confusing with fileatime()
  • Thinking it returns file size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PHP Quizzes