Difference between '==' (equal) and '===' (identical) comparison operators in PHP (with examples)

Suggested by Webmaster on Thursday January 15, 2009

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.

Discussion Type: Discussion on Tutorial

Number of topics: 0

Create a new topic

 
  Login or register to create a new topic.  
 

No records to display