shamuntoha Posted November 25, 2008 Share Posted November 25, 2008 Why to use === ? Why not only use ==? 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? 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 Link to comment https://forums.phpfreaks.com/topic/134249-question/#findComment-698856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.