7 PM, dholmes1...@gmail.com wrote:
> > > > > Thanks switch and case seems to be more faster for the job and a
> > > > > lot cleaner
> > > > > --Original Message--
> > > > > From: Andre Polykanine
> > > > > To: dholmes1...@gmail.co
--Original Message--
From: Andre Polykanine
To: dholmes1...@gmail.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] What's faster using if else or arrays?
Sent: Apr 28, 2011 6:17 PM
Hello Dholmes1031,
I would write it like this:
switch($foo) {
case 5: $dothis; break;
case 3: $d
At 7:19 PM -0400 4/28/11, Robert Cummings wrote:
On 11-04-28 06:37 PM, dholmes1...@gmail.com wrote:
Thanks switch and case seems to be more faster for the job and a lot cleaner
Hello Dholmes1031,
I would write it like this:
switch($foo) {
case 5: $dothis; break;
case 3: $dothat; bre
...@gmail.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] What's faster using if else or arrays?
Sent: Apr 28, 2011 6:17 PM
Hello Dholmes1031,
I would write it like this:
switch($foo) {
case 5: $dothis; break;
case 3: $dothat; break;
default: $donothing; break;
}
This s
s1...@gmail.com
> > Cc: php-general@lists.php.net
> > Subject: Re: [PHP] What's faster using if else or arrays?
> > Sent: Apr 28, 2011 6:17 PM
> >
> > Hello Dholmes1031,
> >
> > I would write it like this:
> > switch($foo) {
> >
On 11-04-28 06:37 PM, dholmes1...@gmail.com wrote:
Thanks switch and case seems to be more faster for the job and a lot cleaner
--Original Message--
From: Andre Polykanine
To: dholmes1...@gmail.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] What's faster using if else or a
Thanks switch and case seems to be more faster for the job and a lot cleaner
--Original Message--
From: Andre Polykanine
To: dholmes1...@gmail.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] What's faster using if else or arrays?
Sent: Apr 28, 2011 6:17 PM
Hello Dholmes103
Hello Dholmes1031,
I would write it like this:
switch($foo) {
case 5: $dothis; break;
case 3: $dothat; break;
default: $donothing; break;
}
--
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_
8 matches
Mail list logo