[UPHPU] faster? switch, if, or variable function

Wade Preston Shearer lists at wadeshearer.com
Thu Aug 9 16:31:35 MDT 2007


> The way that I have done this in the past is to use an associative  
> array to do the lookup of the name of the function to call.  It  
> ends up looking something like this:

If you name the option and the function the same thing, you could  
skip that step, no?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20070809/6add6cc1/smime.bin


More information about the UPHPU mailing list