Forgot your password?
typodupeerror
PHP

Journal shahryarghazi's Journal: Difference between '==' (equal) and '===' (identical) compa

Click here to read the tutorial.

Two of the many comparison operators used by PHP are '==' (i.e. equal) and '===' (i.e. identical). The difference between the two is that '==' should be used to check if the values of the two operands are equal or not. On the other hand, '===' checks the values as well as the type of operands. I'll explain it more using some examples.

This discussion has been archived. No new comments can be posted.

Difference between '==' (equal) and '===' (identical) compa

Comments Filter:

"No, no, I don't mind being called the smartest man in the world. I just wish it wasn't this one." -- Adrian Veidt/Ozymandias, WATCHMEN

Working...