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.
$variable = "guohong";
string variableString = "guohong";

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

Just to put here to remind myself in the future