Beginner
PHP
Q9 / 100
What is the difference between == and === in PHP?
Correct! Well done.
Incorrect.
The correct answer is B) == checks value equality with type juggling; === checks value and type equality
B
Correct Answer
== checks value equality with type juggling; === checks value and type equality
Explanation
0 == "0" is true (type juggling). 0 === "0" is false (different types: int vs string).
Progress
9/100