What are the differences between === and ==, !== and ==... when should you use one and when should you use the other?
This is a dupe of about 1000 questions
Can you post a link to those other questions? I always make sure I look first, obviously the titles weren't clear enough to be found easily. Maybe having this question in as well will help point people in the right direction in case they haven't searched for the exact thing.
I think the problem is you can't search for ===.
I updated the title of stackoverflow.com/questions/359494 so hopefully it will be a little easier to find. You can't search === but you can search "equal."
nice and definitive
"1" == true.. what? I thought I knew these rules thanks for highlighting
KissKoppány if you're confused, it's because 1 and 0 are boolean operators. == does type conversion, so '1' == 1 == true, '0' == 0 == false. === does NOT do type conversion. Generally it's better to go with === unless you expect your vars to typechange frequently which is bizarre (to me at least)