Thread: 3 =s?
View Single Post
  #2 (permalink)  
Old 07-24-2006, 08:15 PM
sarahk's Avatar   
sarahk sarahk is offline
Newbie
 
Join Date: Jun 2006
Location: Auckland, New Zealand
Posts: 18
Rep Power: 9
sarahk is on a distinguished road
Default

It means absolutely the same.

1 == '1' will be true because PHP can see that they're the same value

by the same method 0 can be the same as false
any number greater than 0 can be true

but if you use === 0 is a number and false is boolean and they're not the same at all.

does that make sense?
Reply With Quote