Casting a variable
$undecided = 3.14;
$holder = ( double ) $undecided;
print gettype( $holder ) ;
print " -- $holder
";
$holder = ( string ) $undecided;
print gettype( $holder );
print " -- $holder
";
$holder = ( integer ) $undecided;
print gettype( $holder );
print " -- $holder
";
$holder = ( double ) $undecided;
print gettype( $holder );
print " -- $holder
";
$holder = ( boolean ) $undecided;
print gettype( $holder );
print " -- $holder
";
?>