+ 2

String type and float type sum is like an integer

In php, why string type variable joins the summation ?

29th Aug 2018, 11:51 AM
Anonymous🍩
Anonymous🍩 - avatar
2 Antworten
+ 7
PHP provides automatic conversion to and from strings so 5.0 and "5.0" are identical.
30th Aug 2018, 1:54 AM
John Wells
John Wells - avatar
+ 2
thx i get it
30th Aug 2018, 9:20 AM
Anonymous🍩
Anonymous🍩 - avatar