$unknownvar = "asdf"; echo gettype ($unknownvar) . ""; if (is_string ($unknownvar)){ echo "Is a string"; } ?>