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:

I attribute my success to intelligence, guts, determination, honesty, ambition, and having enough money to buy people with those qualities.

Working...