|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-02-03 16:20 UTC] bugreports at gmail dot com
[2020-02-03 16:55 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2020-02-03 16:55 UTC] requinix@php.net
[2020-02-03 16:56 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
[2020-02-03 16:56 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 03:00:01 2025 UTC |
Description: ------------ $arr = array('b', 0); if(in_array('abc',$arr)) { echo 'ok'; } else { echo 'bad' } when above statement echo 'ok',shoud be echo 'bad' right? Test script: --------------- $arr = array('b', 0); if(in_array('abc',$arr)) { echo 'ok'; } else { echo 'bad' } shoud be echo 'bad',but echo 'ok' Expected result: ---------------- 'bad' Actual result: -------------- 'ok'