Is there any difference between int and integer in PHP?
int
integer
Which is the newer or more recommended use?
$a = (int)\"3 euros\";
Quoting the manual:
Converting to integer To explicitly convert a value to integer, use either the (int) or (integer) casts. ...
Converting to integer
To explicitly convert a value to integer, use either the (int) or (integer) casts. ...