PHP - File HandlingWhich PHP function returns the last access time of a file?Afilemtime()Bfileatime()Cfilesize()Dfilectime()Check Answer
Step-by-Step SolutionSolution:Step 1: Understand file time functionsPHP has different functions for file times: fileatime() for last access, filemtime() for last modification, and filectime() for last change.Step 2: Identify the function for last access timefileatime() specifically returns the last time the file was accessed.Final Answer:fileatime() -> Option BQuick Check:Last access time function = fileatime() [OK]Quick Trick: fileatime() gives last access time of a file [OK]Common Mistakes:Confusing filemtime() with fileatime()Using filesize() for time infoMixing filectime() meaning
Master "File Handling" in PHP9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PHP Quizzes Array Functions - Array filter function - Quiz 12easy Classes and Objects - Methods and $this keyword - Quiz 6medium Error and Exception Handling - Try-catch execution flow - Quiz 15hard Error and Exception Handling - Multiple catch blocks - Quiz 8hard Interfaces and Traits - Multiple interface implementation - Quiz 12easy Sessions and Cookies - Starting and using sessions - Quiz 1easy Sessions and Cookies - How cookies work - Quiz 8hard Sessions and Cookies - Session vs cookie decision - Quiz 1easy Sessions and Cookies - Session variables - Quiz 8hard Superglobals and Web Context - Form handling execution flow - Quiz 2easy