Testing the type of a variable
$testing = 5;
print gettype( $testing ); // integer
print "
";
$testing = "five";
print gettype( $testing ); // string
print("
");
$testing = 5.0;
print gettype( $testing ); // double
print("
");
$testing = true;
print gettype( $testing ); // boolean
print "
";
?>