|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-30 11:32 UTC] colder@php.net
[2008-03-30 11:36 UTC] colder@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Apr 30 01:00:01 2026 UTC |
Description: ------------ Case seems to evaluate only parts of the given case name against the in case given comparator. In the given example it aways runs into the first case, comparing only the first four characters of both strings. Reproduce code: --------------- decide("Items"); decide("Item"); decide("some"); function decide ($parameter){ Switch($parameter){ case "Items": echo "These are all items \n"; break; case "Item": echo "A single Item \n"; break; default: echo "not listed"; }//end switch }//end function Expected result: ---------------- These are all items A single item not listed Actual result: -------------- These are all items These are all items not listed