Google Algorithm Update Explained



Ok, without looking it up on php.net or googling it...who actually knows the difference between:

== and ===

or similarly

!= and !==

$hurr_durr = 0;

if ( $hurr_durr == false ) echo "This Works!";

if ( $hurr_durr === false ) echo "You will not see this.";

if ( $hurr_durr == "0" ) echo 'This also works!';

if ( $hurr_durr === "0") echo "You will not see this either.";


=== checks for exact variables and types. 0 is an integer which also used as false, false is a boolean, "0" is a string.
 
if($customerSpendingOnAdsense > £100) {
$rank *= 100;
}else{
$rank -= 2000;
// todo email customer advising upping adsense spend, release more articles claiming adense & SERPS 'arent related' etc
}
 
revenge-of-the-nerds_0.jpg
 
$hurr_durr = 0;

if ( $hurr_durr == false ) echo "This Works!";

if ( $hurr_durr === false ) echo "You will not see this.";

if ( $hurr_durr == "0" ) echo 'This also works!';

if ( $hurr_durr === "0") echo "You will not see this either.";


=== checks for exact variables and types. 0 is an integer which also used as false, false is a boolean, "0" is a string.

When people don't know this I just think OHHHHH SHIT... maybe not today, maybe not tomorrow, but that's going to get this guy in TROUBLE someday.