[PHP] Any performance penalties for switch vs. if/else?

2001-02-13 Thread John Guynn
If I have a complex if else statement and I replace it with a switch case statement do I loose any performance? I would think I would gain performance and the code is definitely easier to maintain but I wanted some other opinions. John Guynn This email brought to you by RFCs 821 and 1225. --

Re: [PHP] Any performance penalties for switch vs. if/else?

2001-02-13 Thread John Vanderbeck
t: Tuesday, February 13, 2001 11:34 AM Subject: [PHP] Any performance penalties for switch vs. if/else? If I have a complex if else statement and I replace it with a switch case statement do I loose any performance? I would think I would gain performance and the code is definitely easier to m