Logical operators php true or false
As a php neewbie , I try to read a lot of other people´s code in order to learn. Today I came across a line like this : if ( stripos($post_to_check->post_content, '[' . $shortcode) !== false ) I was wondering what is the difference between !==false and ==true If someone can explain that to me, It would be greatly appreciated. ..and if there is no real difference - what would be the reasons to use the quoted one over the other ?? PHP is a loosely typed language. == match the both values and === match the values as well as the data type of values. if (8 == '8') // returns true Above condition