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

[PHP] Switch Question...

2010-11-15 Thread Steve Staples
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 i need to do something on a few of the numbers, then: case 0:

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

[PHP] switch question

2005-04-07 Thread William Stokes
Hello, Can I jump to html and back to php in the middle on switch example: do some html do some html etc etc. Thanks -Will -- 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
mage,0,0,0); break; //.. etc.. // } Hope that helps. - Kevin - Original Message - From: "Van Andel, Robbert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 3:48 PM Subject: [PHP] Switch Question I'm trying to make a switch s

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

[PHP] Switch Question

2003-02-24 Thread Van Andel, Robbert
I'm trying to make a switch statement that looks for more than one possible value. Something similar to: switch($color) { case "black" || "1": return ImageColorAllocate($image,0,0,0); break; case "white" || "2": return ImageColorAllocate($image,255,255,255); break; case "gra