Statement on glibc/iconv Vulnerability

Voting

: min(eight, five)?
(Example: nine)

The Note You're Voting On

Glen
16 years ago
<?php
echo floor(1.6); // will output "1"
echo floor(-1.6); // will output "-2"
?>

instead use intval (seems to work v5.1.6):

<?php
echo intval(1.6); // will output "1"
echo intval(-1.6); // will output "-1"
?>

<< Back to user notes page

To Top