Q. Which PHP function locks a file for exclusive writing?

  • (A) file_lock()
  • (B) lockfile()
  • (C) flock()
  • (D) fmutex()
πŸ’¬ Discuss
βœ… Correct Answer: (C) flock()
Explanation: flock() provides portable advisory file locking.
Explanation by: Mr. Dubey
flock() provides portable advisory file locking.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
44
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate