<<< Previous question <<< Question ID#0305.md >>> Next question >>>
Which of the following can be used to release the lock applied by the flock() function where fp is a file pointer? Each correct answer represents a complete solution. (Choose two)
- A)
flock($fp, LOCK_UN);- B)
fclose($fp);- C)
flock($fp, LOCK_EX);- D)
flock($fp, LOCK_SH);Answer
Answer: A, B