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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -