+ 3
Not knowing the reason of the answer found in challenge
$a = 'e'; $b = '2'; echo $a + $b; the output for this is 2. Can someone tell me the reason please?
5 Respostas
+ 5
It is because non-numerical parts of a string have no integer value.
Hence, "e" is as good as "0"
Edit: If a number is wedged between letters, it is considered non-numerical too
+ 5
I am not so good in PHP so I verified ut on code playground
+ 4
Glad it helped :)
+ 2
thanks for the info Pegasus
+ 1
you do your best đđđ