php - Set apart functions -


what way: keep functions in 1 file or set apart them? (like database.php, session.php)

my approach split functionalities classes; , put each class 1 file.

if have lot of functions, same - split them thematically separate files , include them when needed.

if work classes, can make use of php's autoloader functionality automatically load php files needed instantiate class.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -