Which of the following is a comparison operator in PHP?

  • ==
  • +
  • =
  • &
The == operator is a comparison operator in PHP. It is used to compare two values for equality. For example, $num1 == $num2 will return true if $num1 is equal to $num2, and false otherwise. The == operator checks for equality of values without considering the data types. Learn more: https://www.php.net/manual/en/language.operators.comparison.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *