max range of integer in PHP code example Example 1: php to int $num = "3.14"; $int = (int)$num; Example 2: php biggest int PHP_INT_MAX