View Single Post
  #1 (permalink)  
Old 08-08-2007, 03:07 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee is just really niceLee is just really niceLee is just really niceLee is just really nice
[SOLVED]=== what does it do?

As the title says what does === mean when you use it in php?

Theres = for assigning things and theres == for equal to, the best description i have so far is...

PHP Code:
if(somebooleanfunction($var) === TRUE){
//Statements

That would work where as:
PHP Code:
if(somebooleanfunction($var) == TRUE){
//Statements

Would not work, is that right?

Can anyone say where else === can be used and why it should be?

Thanks for any help.
Reply With Quote