2 ms·
>>Despite the craziness above, and the explicit rejection of Perl’s pairs of string and numeric operators, PHP does not overload +. + is always addition, and .
by digitalzombie 15y ago
>>Despite the craziness above, and the explicit rejection of Perl’s pairs of string and numeric operators, PHP does not overload +. + is always addition, and . is always concatenation.
I like the fact that + is for addition and . is for concat.
It's kind of up in the air if you do "1" + 1, does it become a string? Or an integer?