nerdexam
Zend

200-530 · Question #498

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.

The correct answer is A. flock($fp, LOCK_UN); D. fclose($fp). See the full explanation below for the reasoning.

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.

Options

  • Aflock($fp, LOCK_UN);
  • Bflock($fp, LOCK_EX);
  • Cflock($fp, LOCK_SH);
  • Dfclose($fp);

How the community answered

(25 responses)
  • A
    80% (20)
  • B
    12% (3)
  • C
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice