|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-03 15:05 UTC] KRomas at goldentele dot com
[2005-03-03 15:52 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 15:00:01 2025 UTC |
Description: ------------ a switch on a String variable go in the first case if the Variable 0. if the variable "0" its right and he goes in default! Reproduce code: --------------- $fish = 0; switch($fish) { case "one": echo "one"; break; case "two": echo "two"; break; default: echo "default"; break; } Expected result: ---------------- default Actual result: -------------- one