5 years ago in PHP Operators

What is the output of below code.

<?php
$x = 1;
$y = "1";
var_dump($x === $y);
?>

[A] bool(false)
[B] bool(true)
[C] bool()
[D] None of the above
Loading...
Next Question

Overall Stats

Attempted 51
Correct 18
Incorrect 16
Viewed 17

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 1 week ago

Shamsa hafeez from Lahore, Pakistan is saying bool(false) is correct answer

Dhanashree Shinde
Dhanashree Shinde - 3 weeks ago

Dhanashree Shinde from Pune, India is saying bool(true) is correct answer

Dhanashri Bhuyar
Dhanashri Bhuyar - 1 month ago

Dhanashri Bhuyar from Mumbai, India is saying bool(false) is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying bool(false) is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying bool(true) is correct answer

Related Questions

Which operator is used for compare two values?

  • [A] Assignment Operator
  • [B] Bitwise Operator
  • [C] Arithmetic Operators
  • [D] Comparison Operators

Which of the following is PHP Logical Operator?

  • [A] AND
  • [B] OR
  • [C] XOR
  • [D] ALL of the above

Which is the Negation operator in PHP?

  • [A] -$a
  • [B] $a / $b
  • [C] $a % $b
  • [D] $a ** $b