News for hackers. Stuff that matters.
Re:Learn PHP – Free interactive PHP tutorial by georgehotelling on Tuesday November 26, 2013 @09:30AM (#6801403)
While not enforced at the language level, PSR-1 states that "Files SHOULD either declare symbols (classes, functions, constants, etc.) or cause side-effects (e.g. generate output, change .ini settings, etc.) but SHOULD NOT do both."

Basically it stipulates that you should keep classes outside of the main page loader to be compliant.

There are no comments on this comment yet.