$settings array or Config Class to store project settings?

后端 未结 7 1662
眼角桃花
眼角桃花 2021-02-04 16:25

How should I store settings for project?

Which is better - to use a $settings array with all my settings:

$settings[\'max_photos\'] = 30;
//         


        
相关标签:
7条回答
  • 2021-02-04 17:15

    The best way is to store your setting in a file . and to manipulate this file declare a class which does operations on file

    0 讨论(0)
提交回复
热议问题