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