PHP code example of catlane / dcat-sys-config

1. Go to this page and download the library: Download catlane/dcat-sys-config library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

catlane / dcat-sys-config example snippets


#获取配置项
sys_config('config', '');
sys_config('arr.key.price', '100');
如果未找到,且未设置默认值,则返回null
支持JSON数组用.的方式来获取数组的键值