<?php settype($foo, "integer"); echo $foo; ?>
<?php $x = 432; var_dump(is_int($x)); $x = 23.77; var_dump(is_int($x)); ?>
$age = 19; //integer is assigned to variable age echo $age //will output 19