I was wondering what is the best way to typecast a value from one type to another.
Which variant should we use:
intval($value);
settype($value, 'int')
(int)$value
All of them produce same result.