dynamic function name

Hi,

to split my code in modules, I would to write several functions.

ex: I have an Object, with field "type" (type1, type2..)

I want to call a function : send$type

Instead of have to test each type and call right function. (sendtype1, sendtype2 ...)

If we could have a mechanism as in WP hierarchy it will be awesome ๐Ÿฅณ

If someone resolve this with another way, feel free add comment ๐Ÿ™‚

Patrick