Understanding PHP’s strict_types, Type Checking, and Float Coercion
When working with PHP, especially in modern versions like 8.2.x through 8.4.x, many developers stumble upon unexpected behaviors around type-checking. This is especially true when dealing with strict_types, is_float, and type coercion. Let’s dive deep into this with an example, breaking down what’