To expand on cereal's comment. You may also look into the types of comparison operators.
== is Equals. Using this operator will only compare the value.
=== is Identical. This operator will compare type and value of the variable.
=== Should be used on strings.