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