+ 1

Madness

can't get it. $r = 2."2"; $r = 2.$r-$r; That's code from one of php questions. I can't get how it comes that answer is 200. It's not correct code, is it???

22nd May 2017, 8:47 AM
VendeTTa
VendeTTa - avatar
2 odpowiedzi
+ 2
$r = 2."2" = "22" $r = 2.$r - $r = 2."22" - "22" = "222" - "22" = 200
22nd May 2017, 8:59 AM
Apel Mahmod
Apel Mahmod - avatar
+ 1
cheers
22nd May 2017, 9:43 AM
VendeTTa
VendeTTa - avatar