You really should visit the manual before posting here.
<http://www.php.net/manual/en/function.strlen.php>
The only variable with "type" in php are arrays and objects, so the following is perfectly legit:
$temp=5403;
$temp2=$temp+7; // 5410
$temp3=strlen($temp); // 4
Starting with $temp="5403"; should produce the same results...