Search Results For : coding

= VS ==

Those who does coding should had once encountered this problem.

To use = or ==. I stumbled on this problem again yesterday when coding up the site.

= Used for assignment.
Example:
$variable = "guohong";
string variableString = "guohong";

== Used for comparison.
Example:
if ( $variable == "guohong" )

Just to put here to remind myself in the future