(PHP 4, PHP 5, PHP 7)
Set the type of a variable
bool settype ( mixed &$var, string $type )
Set the type of variable var to type.
Parameters:
var
The variable being converted.
type
Possibles values of type are:
"boolean" (or, since PHP 4.2.0, "bool") "integer" (or, since PHP 4.2.0, "int") "float" (only possible since PHP