coding style - Mix of PHP functions and classes in one file? -
are there strong technical reasons not combine list of functions , classes in 1 php file? or combine several classes in single file?
i have put each class in own file way keep things "clean." , if needed not-oop, maybe group related functions single file. however, i've seen code piled 1 file. aside not being organized, there other dangers practice?
the technical reason not support psr-0 (autoloading).
this enforces one class per file standard. not apply global, user-defined functions.
Comments
Post a Comment