Possible Duplicates:
Fastest way to convert string to integer in PHP
PHP: Is there any particular difference between intval and (int)?
Is (int)$var same as intval($var) ?
Apparently they both do the same thing.
Is there any situation in which they would return different results?