Voting

: five plus three?
(Example: nine)

The Note You're Voting On

leon at leonidasjp dot nl
8 years ago
It seems intval is interpreting valid numeric strings differently between PHP 5.6 and 7.0 on one hand, and PHP 7.1 on the other hand.

<?php
echo intval('1e5');
?>

will return 1 on PHP 5.6 and PHP 7.0,
but it will return 100000 on PHP 7.1.

<< Back to user notes page

To Top