how to make functions global?

Posted by fayer on Stack Overflow See other posts from Stack Overflow or by fayer
Published on 2010-04-30T10:02:09Z Indexed on 2010/04/30 10:07 UTC
Read the original article Hit count: 167

Filed under:
|

i'm trying to follow DRY and i've got some functions i have to reuse.

i put them all as static functions in a class and want to use them in another class.

what is the best way to make them available to a class.

cause i can't extend the class, its already extended.

should/could i use composition?

what is best practice?

thanks!

© Stack Overflow or respective owner

Related posts about oop

Related posts about php