php int typecast to 0 code example Example: php typecast to int $num = "3.14"; $int = (int)$num; $float = (float)$num;