|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-13 06:15 UTC] goodman888 at hongkong dot com
$a = pow(2,31); $b = array($a); var_dump( in_array(2147483648, $b)); $b = array(2147483648); var_dump( in_array(2147483648, $b)); // this is the result. how come there are different? bool(false) bool(true) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
The bug database is not the place to ask questions like this. And like I mentioned, just convert to a string: $a = pow(2,31); $b = array("$a"); echo in_array(2147483648, $b); That prints 1