using these functions on your arguments will ensure type safety for all data thats passed to you if the supplied type doesnt match the required type php forces dummy contents on the resulting value empty strings arrays or objects 0 for numeric values false for booleans to ensure a defined state 