1. Home
  2. Computer Science MCQs
  3. PHP
  4. Which character do the error_reporting directive use to…

Added 19 Jan 2024

Which character do the error_reporting directive use to represent the logical operator NOT in PHP?

  1. /
  2. !
  3. ~ Correct answer
  4. ^

Correct answer

C. ~

17 views

MCQSEXAM

Explanation

In the error_reporting directive in PHP, the tilde (~) character is used to represent the logical operator NOT.

Reference

https://www.php.net/manual/en/function.error-reporting.php

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs