PHP Interview questions


Total available count: 33
Subject - PHP Frameworks
Subsubject - PHP

What is the difference between == and === in PHP?

When comparing values in PHP for equality, we can use either the == operator or the === operator. What’s the difference between them? Well, it’s quite simple. The == operator just checks to see whether left and right values are equal or not. But, the === operator (note the extra “=”) actually checks to see whether left and right values are equal, and also checks to see whether they are of the same variable type (like whether they are both booleans, ints, etc.) or not.




Next 5 interview question(s)

1
What is the difference between self and $this?
2
What is the use of ::class?
3
Define inheritance and how it can be implemented in PHP?
4
What are Objects?
5
What are Classes?