4 ms·
It's more about automatic type conversion than the API, though; numerics magically get converted to strings and vice-versa. This is convenient in some cases, es
by marklgr 10y ago
It's more about automatic type conversion than the API, though; numerics magically get converted to strings and vice-versa. This is convenient in some cases, especially for beginners who don't have to think about types, but it eventually bites you if you never realize what happens in your back.
- Zarel 10y agoThe problem is that ctype_digit does not magically get converted to a string, it instead just returns gibberish. If ctype_digit(100) magically got converted to ctype_digit('100'), that would not be a problem.