where to store helper functions?

Posted by ajsie on Stack Overflow See other posts from Stack Overflow or by ajsie
Published on 2010-04-27T00:03:29Z Indexed on 2010/04/27 0:33 UTC
Read the original article Hit count: 307

i've got a lot of functions i create or copy from the web.

i wonder if i should store them in a file that i just include into the script or should i store each function as a static method in a class.

eg. i've got a getCurrentFolder() and a isFilePhp() function.

should they be stored in a file as they are or each in a class:

Folder::getCurrent() File::isPhp();

how do you do?

i know this is kinda a "as u want" question but it would be great with some advices/best practices

thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about oop