Case Insensitive Cast

../_images/case_insensitive_cast.png

PHP’s cast operators are case-insensitive, meaning variations like (int), (INT), and (iNt) all work the same way. However, the common convention is to use all lowercase, such as (int). Using other case styles is technically valid but extremely rare and generally discouraged for consistency and readability in code. Stick to lowercase for better code standards.

See Also

PHP Features