shamuntoha Posted November 25, 2008 Share Posted November 25, 2008 Why to use === ? Why not only use ==? Quote Link to comment https://forums.phpfreaks.com/topic/134249-question/ Share on other sites More sharing options...
revraz Posted November 25, 2008 Share Posted November 25, 2008 Do you know what they each mean? Quote Link to comment https://forums.phpfreaks.com/topic/134249-question/#findComment-698854 Share on other sites More sharing options...
bluesoul Posted November 25, 2008 Share Posted November 25, 2008 === also checks for the variable type. $i = string(1); $j = int(1); $i === $j ? echo true : echo false; $i == $j ? echo true : echo false; Would return: false true Quote Link to comment https://forums.phpfreaks.com/topic/134249-question/#findComment-698856 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.