|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-29 16:36 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 20:00:01 2025 UTC |
Description: ------------ Well. why 0(it's int, NOT '0' with string) in any string array? I think it shouldn't be. Reproduce code: --------------- <?php if (in_array(0, array('All'))) { echo 'a'; } else { echo 'b'; } ?> Expected result: ---------------- it outputs "b", and I think it should be "a". Because 0 and "0" are different.