Jump to content

.=


hgmme@wa

Recommended Posts

That's no comparrison. That's concatenation assignment. That is, assign the value of a variable to be that variable, concatenated with the variable on the right.In other words,

$var1 .= $var2;

is the same as

$va1 = $var1 . $var2;

If used in a comparrison, like:

if ($var1 .= $var2)

then it would always evaluate to "true" unless $var2 in being concatenated with $var1 somehow resulted to a boolean false, and I'm not aware of any scenario where that would be possible.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...