I'm guessing this has been asked already. I know in php you can change the datatype of a variable as in this example.
$var = '3';
if (is_string($var))
echo "variable is now string <br />";
$var = $var+1;
if (is_int($var))
echo "variable is now integer <br />";
However can a variable hold more than one data type at a single point in time?
PHPuses some kind of representation cache, so that if a variable is accessed as a string, the string representation is cached and if, later on, it is accessed as an integer, the variable will have both representations cached. But short of that, I can't see how one variable having more than one data type would manifest itself.