Codelegance

coercion

A collection of 1 post

coercion

Embracing coercion in PHP

Coercion is implicit typecasting for scalar types (integer, float, boolean and string). In this article we look at how we can use coercion as an elegant alternative to explicit typecasting. Coercing to integer

Paul Morris Paul Morris
Codelegance © 2025
Latest Posts