I have many functions that I create or copy from the Internet.
I wonder if it's worth storing them in a file, which I just include in the script, or should store each function as a static method in the class.
eg. I have a getCurrentFolder () and isFilePhp () function.
if they will be stored in a file in the form in which they are, or in each class:
Folder :: getCurrent () File :: isPhp ();
how do you do it
I know this is a โwhatever you wantโ question, but it would be great with some tips / best practices.
thanks.
oop php code-organization organization
never_had_a_name
source share