Gettype() and Settype() Usage
$my_double = 100;
$my_string = 1;
print("\$my_double's data type is... (" . gettype($my_double) .")
");
print("\$my_string's data type is... (" . gettype($my_string) .")
");
settype($my_string, "string");
settype($my_double, "double");
print("\$my_double's data type is... (" . gettype($my_double) .")
");
print("\$my_string's data type is... (" . gettype($my_string) .")
");
?>