Indeed not:
As you see, hello is interpreted as "hello"—but as a consequence, 1 + hello is perfectly legitimate (and evaluates to 1… because PHP is weird).
hello
"hello"
1 + hello
1
Ah, of course. Obviously PHP isn’t type-safe in any way. It does throw a warning at least in the REPL I tried.
Indeed not:
As you see,
hello
is interpreted as"hello"
—but as a consequence,1 + hello
is perfectly legitimate (and evaluates to1
… because PHP is weird).Ah, of course. Obviously PHP isn’t type-safe in any way. It does throw a warning at least in the REPL I tried.