Professional Documents
Culture Documents
Analyzing Data Types : In practice, you will not use settype and gettype
very often because you will rarely need to alter the data type of a
variable.
Variable Variables
It is possible to use the value stored in a variable as the
name of another variable. If this sounds confusing, the
following example might help:
$my_age = 21;
$varname = "my_age";
echo "The value of $varname is ${$varname}";