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
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
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
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
[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
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
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
7 matches
Mail list logo