PHP Syntax Datatypes Type-Related Functions Set Type


- Info:

- settype() function converts a variable, specified by var, to the type specified by type:

boolean settype(mixed var, string type)

- Seven possible type values are available: array, boolean, float, integer, null, object, and string.

- If the conversion is successful, TRUE is returned; otherwise, FALSE is returned.