[UPHPU] faster? switch, if, or variable function
Jennifer Charrey
jcharrey at xmtp.net
Thu Aug 9 15:36:59 MDT 2007
Scott Wrote:
> <?php
> // Third example - variable function call
>
> $funcName = 'FuncThree';
>
> $funcName();
>
> ?>
Of course this is faster, but how did you choose FuncThree as the one that
needs to be run? And if you already know you need to run FuncThree, what
would be the point of any conditionals (and why not just call it
directly)? Maybe I'm not understanding the original premise, but comparing
conditionals to a function call seems... strange.
More information about the UPHPU
mailing list