doc-en
doc-en copied to clipboard
intval returns unxpected result for string with "." and "e" which is not documented.
echo intval('42.'); //42 ok
echo intval('42.42'); //42 ok
echo intval('42.42e'); //42 ok
echo intval('42.42e42'); //9223372036854775807
From manual page: https://php.net/function.intval