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