First time coding in PHP and I hate it. It's an inconsistent clusterfuck.
1+"1" is ok and returns int but "str"+"str" is an error and you have to use . and if you do "1"+"1" it's ok and turns into an int
There are also multiple ways to do the same. To convert a number to a string you can either cast it or use use strval()![]()
@matrix 1+"1" or "1" + "1" is addition
"str" . "str" is a concatenation
Lua has the .. op for concatenation, and I think some other languages do the same or similar