Is there any particular difference between intval and casting to int – `(int) X`? October 5, 2022 by Tarik intval() can be passed a base from which to convert. (int) cannot. int intval( mixed $var [, int $base = 10 ] )