3 ms·
PHP is doing the right thing here. Way back when I first tried PHP out, I tried joining strngs together with a + operator. I made a mistake, but I kept getting
by billpg 14y ago
PHP is doing the right thing here. Way back when I first tried PHP out, I tried joining strngs together with a + operator.
I made a mistake, but I kept getting back zeros instead of some sort of NULL or an exception. This is a bug, in the sense of its not how I wanted PHP to behave. I'm glad PHP is fixing its string-to-numeric bugs.