How can I apply_filters from inside a function?

How can I apply_filters from inside a function?