Re: [PHP] to use switch or not to use switch

2002-10-16 Thread Maxim Maletsky
sorry, strlen(), not sizeof(). -- Maxim Maletsky [EMAIL PROTECTED] On Thu, 17 Oct 2002 03:03:13 +0200 Maxim Maletsky <[EMAIL PROTECTED]> wrote: > > the answer can be as simple as: > >$k = sizeof($field); > > if(...) > $file = 'this'; > elseif(...) >

Re: [PHP] to use switch or not to use switch

2002-10-16 Thread Maxim Maletsky
the answer can be as simple as: -- Maxim Maletsky [EMAIL PROTECTED] On Wed, 16 Oct 2002 20:39:50 -0400 "John W. Holmes" <[EMAIL PROTECTED]> wrote: > Sounds like a good time for a switch to me... > > ---John Holmes... > > > -Original Message- > > From: Peter Houchin [mailto:[EMAIL

RE: [PHP] to use switch or not to use switch

2002-10-16 Thread John W. Holmes
Sounds like a good time for a switch to me... ---John Holmes... > -Original Message- > From: Peter Houchin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 16, 2002 8:19 PM > To: php_gen > Subject: [PHP] to use switch or not to use switch > > howdy > > am just courious to see what

Re: [PHP] to use switch or not to use switch

2002-10-16 Thread Marco Tabini
Suggestions: 1) Use javascript to determine the script to run--slow and prone to attacks because you have little control over 2) Code different functions depending on the size of the text 3) Include a different file with the code to execute depending on the size of the text Cheers, Marco On