Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Date: Sun, 12 Jan 2014 18:44:51 +0100 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: Switch question References: <1jvvn9b20ts0y.1vez76z3aca4b.dlg@40tude.net> <1poy7ts4hdy96$.188q6380cr9m0.dlg@40tude.net> In-Reply-To: <1poy7ts4hdy96$.188q6380cr9m0.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 22 NNTP-Posting-Host: 2001:980:9089:1:e413:fe0e:9153:32a1 X-Trace: 1389548701 news.xs4all.nl 2939 [2001:980:9089:1:e413:fe0e:9153:32a1]:36982 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.php:12620 On 12-01-2014 18:26, richard wrote: > On Sun, 12 Jan 2014 17:18:59 +0000 (UTC), Denis McMahon wrote: > >> On Sun, 12 Jan 2014 11:48:48 -0500, richard wrote: >> >>> >>> So what is the proper way to ensure the proper case is found correctly? >> >> You seem to have missed the paragraph beginning "It is important to >> understand how the switch statement is executed in order to avoid >> mistakes." on the manual page. This paragraph answers your question. > > for once I get to say, to you, >>>> RTFM! > : is used for constants. > ; is used for strings. > From the manual: "It's possible to use a semicolon instead of a colon after a case like:" But this has nothing to do with contants or strings, or....?