Efficiency for including files of functions (in PHP)

后端 未结 5 1837
-上瘾入骨i
-上瘾入骨i 2020-12-11 02:12

If I had a large number of functions would it be better to keep them all in one large file or would it be better to separate them into several files of related functions. By

5条回答
  •  暖寄归人
    2020-12-11 02:54

    Definitely separate them, for maintainability sake. I doubt performance will suffer at all, but even if it does (just a teensy bit) you're better off writing maintainable, readable code.

提交回复
热议问题