Re: [PHP] Switch Question...

2010-11-15 Thread Steve Staples
On Mon, 2010-11-15 at 22:43 +, Ashley Sheridan wrote: > On Mon, 2010-11-15 at 16:27 -0500, Steve Staples wrote: > > > Ok, dumb question, and i have tested, but I want to ensure that my tests > > were accurate, and behavior is correct. > > > > Ok, i have an integer, that based on what it is, d

Re: [PHP] Switch Question...

2010-11-15 Thread Ashley Sheridan
On Mon, 2010-11-15 at 16:27 -0500, Steve Staples wrote: > Ok, dumb question, and i have tested, but I want to ensure that my tests > were accurate, and behavior is correct. > > Ok, i have an integer, that based on what it is, does certain things... > > switch ((int)$intval) > { > } > > now, if

Re: [PHP] switch question

2005-04-07 Thread Ryan A
Hey, > Can I jump to html and back to php in the middle on switch yes, you can. Question: I know this might sound silly but why didnt you try it before writing to the list? you would have gotten your answer much quicker. Cheers, Ryan -- No virus found in this outgoing message. Checked by AV

Re: [PHP] switch question

2005-04-07 Thread John Nichel
William Stokes wrote: Hello, Can I jump to html and back to php in the middle on switch Test the question. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] switch question

2005-04-07 Thread Jay Blanchard
[snip] Can I jump to html and back to php in the middle on switch [/snip] Yes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Switch Question

2003-02-24 Thread Kevin Stone
To do this you would use multiple nested case statments and break only after the last case statement. You cannot use conditionals within a case statement but this has the effect of an OR condition... switch($color) { case "black": case 1: return ImageColorAllocate($image,0,0,0); b

Re: [PHP] Switch Question

2003-02-24 Thread Ernest E Vogelsinger
switch($color) { case 1: case "black": return ImageColorAllocate($image,0,0,0); break; case 2: case "white": return ImageColorAllocate($image,255,255,255); break; case 3: case "gray": return ImageColorAllocate($image,200,200,200); break; } -- >O Ernest E. Vogel