Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



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:

"If you can, help others. If you can't, at least don't hurt others." -- the Dalai Lama

Working...