In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
yeah, i really like using cases they work well and especially if you want to
do something different for different values, i forgot about that, its a good
way to do it,
does php have case else? cuz that is a really handy thing in VB
This doesnt work as expected.
if ( $var === TEST ONE || TEST TWO || TEST THREE) {
do something;
}
It returns true on all strings. Ive tried using the or operator
and the == but these fail as well. Any Ideas?
It behaves exactly as expected. Try checking the manual section on
try
if ( $var == TEST ONE || $var == TEST TWO || $var == TEST THREE) {
do something;
}
luke
- Original Message -
From: Dan J. Rychlik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 9:53 AM
Subject: [PHP] Control Structure problem
This doesnt work as
Thank you guys. I truly know the level of expertise on this mailing list,
and I know that it proves invaluable.
Thank you again.
-Dan
- Original Message -
From: Luke Skywalker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 7:01 PM
Subject: Re: [PHP] Control
: Wednesday, September 17, 2003 10:12 AM
Subject: Re: [PHP] Control Structure problem
Thank you guys. I truly know the level of expertise on this mailing list,
and I know that it proves invaluable.
Thank you again.
-Dan
- Original Message -
From: Luke Skywalker [EMAIL PROTECTED
Dan J. Rychlik mailto:[EMAIL PROTECTED]
on Tuesday, September 16, 2003 5:12 PM said:
Thank you guys. I truly know the level of expertise on this mailing
list, and I know that it proves invaluable.
lovingjab
If by I truly know the level of expertise on this mailing list you
meant I truly
:) but i know it would be really nice in
simple logical expressions
Luke
- Original Message -
From: Chris W. Parker [EMAIL PROTECTED]
To: Dan J. Rychlik [EMAIL PROTECTED]; Luke Skywalker
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:18 AM
Subject: RE: [PHP] Control
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]):
Dan J. Rychlik mailto:[EMAIL PROTECTED]
on Tuesday, September 16, 2003 5:12 PM said:
Thank you guys. I truly know the level of expertise on this mailing
list, and I know that it proves invaluable.
p.p.s. I totally think that the
-
From: Curt Zirzow [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:49 AM
Subject: Re: [PHP] Control Structure problem
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]):
Dan J. Rychlik mailto:[EMAIL PROTECTED]
on Tuesday, September 16, 2003 5:12 PM said
are you thinking of default: ?
-Original Message-
From: Luke Skywalker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 September 2003 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Control Structure problem
yeah, i really like using cases they work well and especially if you want to
do
: [PHP] Control Structure problem
are you thinking of default: ?
-Original Message-
From: Luke Skywalker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 17 September 2003 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Control Structure problem
yeah, i really like using cases they work
On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote:
:
: switch ($var) {
: case 'TEST-1': case 'TEST-2': case 'TEST-2':
: do something
: }
The switch statement doesn't do an equivalency test, does it? So while
this switch statement can be rewritten as:
if (($var
* Thus wrote Eugene Lee ([EMAIL PROTECTED]):
On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote:
The switch statement doesn't do an equivalency test, does it? So while
this switch statement can be rewritten as:
if (($var == 'TEST-1') || ($var == 'TEST-1') || ($var ==
On Wed, Sep 17, 2003 at 01:29:26PM +1000, Tom Rogers wrote:
: Wednesday, September 17, 2003, 11:47:45 AM, Eugene Lee wrote:
:
: EL The switch statement doesn't do an equivalency test, does it?
[...]
: EL it doesn't do:
:
: EL if (($var === 'TEST-1') ||
: EL($var === 'TEST-1')
--- Eugene Lee [EMAIL PROTECTED] wrote:
: switch (true) {
: case ($var === 'TEST-1')?true:false:
: case ($var === 'TEST-2')?true:false:
: case ($var === 'TEST-2')?true:false:
:do something
: }
Oh man, that's just sick...
Partially because it's unnecessarily
I forgot to say I deleted tabs so that the width might fit in a
typical mail reader.
Jeff Oien
This code assigns rooms to kids signing up for Sunday school
at a very large church. Each subsequent registration is put into
the next room on the list. It looks up in the MySQL database
the room
16 matches
Mail list logo