Re: [PHP] Efficiency question

2006-08-04 Thread Richard Lynch
On Tue, July 25, 2006 11:41 pm, Paul Scott wrote: > I have googled around a bit, but not really found anything useful... > > Which is more efficient? A case switch or a $$method style method? > > An example: > > switch($action) { > case 'edit': > //do some stuff > ... > re

Re: [PHP] Efficiency question

2006-07-26 Thread Jochem Maas
Paul Scott wrote: > I have googled around a bit, but not really found anything useful... > > Which is more efficient? A case switch or a $$method style method? > both examples are just boilerplate 'frontcontroller' code that do pretty much nothing of themselves. - in terms of speed you will no

Re: [PHP] Efficiency question

2006-07-26 Thread Rory Browne
For something like that that, unless you are doing it inside a loop, I wouldn't really worry about efficiency as much as I would about security On 7/26/06, Paul Scott <[EMAIL PROTECTED]> wrote: I have googled around a bit, but not really found anything useful... Which is more efficient? A cas

[PHP] Efficiency question

2006-07-25 Thread Paul Scott
I have googled around a bit, but not really found anything useful... Which is more efficient? A case switch or a $$method style method? An example: switch($action) { case 'edit': //do some stuff ... return "edit_tpl.php"; case 'whatever': //blah ..