|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-11 03:56 UTC] sniper@php.net
[2005-11-11 07:55 UTC] daniel at assertio dot es
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 09 17:00:01 2025 UTC |
Description: ------------ If a switch case is 0 and the variable value evaluated in the switch is a string, that case is picked. Reproduce code: --------------- $var = "hello"; switch($var){ case 0: echo "var is 0"; break; default: echo "default!"; } Expected result: ---------------- default! Actual result: -------------- var is 0