0 votes
in PHP by

What happens if you add a string to an integer using the + operator?

A) The interpreter outputs a type mismatch error
B) The string is converted to a number and added to the integer
C) The string is discarded and the integer is preserved

D) The integer and string are concatenated together in a new string

E) The integer is discarded and the string is preserved

1 Answer

0 votes
by

The string is converted to a number and added to the integer

Related questions

+1 vote
asked Jun 23, 2019 in PHP by SakshiSharma
0 votes
asked Mar 19, 2020 in PHP by DavidAnderson
...