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
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
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
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
..
4 matches
Mail list logo