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