$settings array or Config Class to store project settings?

后端 未结 7 1669
眼角桃花
眼角桃花 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

提交回复
热议问题